home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / EDITORS / TINYED2.ZIP;1 / T.DOC < prev    next >
Encoding:
Text File  |  1993-12-02  |  100.6 KB  |  3,404 lines

  1.  
  2.  
  3.                                                                 TDoc-v220-0
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.         ===================================================================
  35.         T
  36.         A Tiny Editor
  37.         Version 2.20
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.         (C) Copyright IBM Corporation 1987, 1993
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.         (C) Copyright IBM Corporation 1987, 1993
  68.         
  69.         
  70.         
  71.         -------------------------------------------------------------------
  72.         Version 2.20, October 1993
  73.  
  74.         This program was written by:
  75.  
  76.         Tim Baldwin
  77.         
  78.         IBM UK Laboratories
  79.         Hursley Park
  80.         Winchester
  81.         Hampshire, SO21 2JN
  82.         
  83.         BALDWINT at WINVMB
  84.         baldy@vnet.ibm.com
  85.  
  86.  
  87.         (C) Copyright IBM Corporation 1987, 1993.  All Rights Reserved.
  88.         -------------------------------------------------------------------
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.         
  128.                                                                     Page  i
  129.  
  130.  
  131.         (C) Copyright IBM Corporation 1987, 1993
  132.         
  133.         
  134.         
  135.         PREFACE
  136.  
  137.         This document describes T, a very small yet very powerful full
  138.         screen text editor for IBM PC, PS/2 and compatible machines.  The
  139.         document is divided into two main parts: "Part 1.  Using The
  140.         Editor" and "Part 2.  Editor Reference".
  141.  
  142.         Part 1 is a user's guide containing these sections:
  143.  
  144.         -  "1.0 Introduction".  This describes T, giving an overview of its
  145.            main features and omissions.  It also details the hardware and
  146.            software you will need to be able to use the editor and how you
  147.            can obtain a copy.
  148.  
  149.         -  "2.0 Getting Started".  This describes how to install T ready
  150.            for use.  It describes how to start up the editor, what the
  151.            screen looks like and how to use the help files.
  152.  
  153.         -  "3.0 Editing".  Contains a brief introduction to editing with
  154.            T describing how to issue commands and functions and the basics
  155.            of editing.  This section also covers searching and replacing,
  156.            the word processing features, the box drawing functions and
  157.            describes how to print documents when using the editor.
  158.  
  159.         -  "4.0 Customising".  Describes how the editor can be customised
  160.            to change the screen colours, to redefine the keyboard functions
  161.            and to alter some other special editor settings.
  162.  
  163.         Part 2 is the reference manual, divided into three sections:
  164.  
  165.         -  "1.0 Commands".  An alphabetical list of all the editor's
  166.            commands.
  167.  
  168.         -  "2.0 Keyboard Functions".  An alphabetical list of all the
  169.            editor's keyboard functions.
  170.  
  171.         -  "3.0 Settings".  An alphabetical list of all the editor's
  172.            special settings.
  173.  
  174.         Two appendices are also included:
  175.  
  176.         -  "Appendix A.  Messages".  Lists all the messages T can produce,
  177.            giving the meaning of the message and any possible action that
  178.            may need to be taken.
  179.  
  180.         -  "Appendix B.  User Definable Keys".  Lists all the valid names
  181.            and shift- combinations for the user-definable keys.
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.         
  192.                                                                 Preface  ii
  193.  
  194.  
  195.         (C) Copyright IBM Corporation 1987, 1993
  196.         
  197.         
  198.         
  199.         CONTENTS
  200.  
  201.  
  202.           Part 1.  Using The Editor   . . . . . . . . . . . . . . . . . . 1
  203.  
  204.           1.0 Introduction  . . . . . . . . . . . . . . . . . . . . . . . 2
  205.           1.1 Features and Omissions  . . . . . . . . . . . . . . . . . . 2
  206.           1.2 What You Need   . . . . . . . . . . . . . . . . . . . . . . 3
  207.  
  208.           2.0 Getting Started   . . . . . . . . . . . . . . . . . . . . . 5
  209.           2.1 Starting T  . . . . . . . . . . . . . . . . . . . . . . . . 5
  210.           2.2 Screen Layout   . . . . . . . . . . . . . . . . . . . . . . 5
  211.           2.3 The Help File   . . . . . . . . . . . . . . . . . . . . . . 6
  212.  
  213.           3.0 Editing   . . . . . . . . . . . . . . . . . . . . . . . . . 7
  214.           3.1 Keyboard Functions  . . . . . . . . . . . . . . . . . . . . 7
  215.           3.2 Simple Editing  . . . . . . . . . . . . . . . . . . . . . . 7
  216.             3.2.1 The Command Line  . . . . . . . . . . . . . . . . . . . 7
  217.             3.2.2 The Data Area   . . . . . . . . . . . . . . . . . . . . 8
  218.             3.2.3 Marking and Copying Lines   . . . . . . . . . . . . . . 8
  219.             3.2.4 Saving Documents  . . . . . . . . . . . . . . . . . . . 9
  220.             3.2.5 Working On Several Documents  . . . . . . . . . . . . . 9
  221.           3.3 Search and Replace  . . . . . . . . . . . . . . . . . . . . 9
  222.             3.3.1 Searching   . . . . . . . . . . . . . . . . . . . . . . 9
  223.             3.3.2 Replacing  . . . . . . . . . . . . . . . . . . . . . . 10
  224.           3.4 Word Processing  . . . . . . . . . . . . . . . . . . . . . 10
  225.             3.4.1 The Right Margin and Word Spill  . . . . . . . . . . . 11
  226.             3.4.2 The ADJUST LINE Function   . . . . . . . . . . . . . . 11
  227.           3.5 Drawing Boxes  . . . . . . . . . . . . . . . . . . . . . . 12
  228.           3.6 Printing   . . . . . . . . . . . . . . . . . . . . . . . . 12
  229.             3.6.1 Printer Control Codes  . . . . . . . . . . . . . . . . 13
  230.             3.6.2 Printer Set Up   . . . . . . . . . . . . . . . . . . . 13
  231.  
  232.           4.0 Customising  . . . . . . . . . . . . . . . . . . . . . . . 14
  233.           4.1 The Custom Definition File   . . . . . . . . . . . . . . . 14
  234.             4.1.1 Colour and Mono Commands   . . . . . . . . . . . . . . 15
  235.             4.1.2 Key Commands   . . . . . . . . . . . . . . . . . . . . 17
  236.             4.1.3 Set Commands   . . . . . . . . . . . . . . . . . . . . 18
  237.           4.2 The HELP and USER Functions  . . . . . . . . . . . . . . . 18
  238.           4.3 The Enhanced Keyboard  . . . . . . . . . . . . . . . . . . 19
  239.  
  240.           Part 2.  Editor Reference  . . . . . . . . . . . . . . . . . . 20
  241.  
  242.           1.0 Commands   . . . . . . . . . . . . . . . . . . . . . . . . 21
  243.           1.1 APPEND   . . . . . . . . . . . . . . . . . . . . . . . . . 21
  244.           1.2 CHANGE   . . . . . . . . . . . . . . . . . . . . . . . . . 21
  245.           1.3 DOS  . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  246.           1.4 EDIT   . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  247.           1.5 FILE   . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  248.           1.6 GET  . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
  249.           1.7 GOTO   . . . . . . . . . . . . . . . . . . . . . . . . . . 23
  250.           1.8 LOCATE   . . . . . . . . . . . . . . . . . . . . . . . . . 23
  251.           1.9 MARGIN   . . . . . . . . . . . . . . . . . . . . . . . . . 23
  252.           1.10 NAME  . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  253.           1.11 PRINT   . . . . . . . . . . . . . . . . . . . . . . . . . 24
  254.  
  255.         
  256.                                                               Contents  iii
  257.  
  258.  
  259.         (C) Copyright IBM Corporation 1987, 1993
  260.         
  261.         
  262.         
  263.           1.12 PUT   . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  264.           1.13 QUIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  265.           1.14 SAVE  . . . . . . . . . . . . . . . . . . . . . . . . . . 25
  266.           1.15 VERSION   . . . . . . . . . . . . . . . . . . . . . . . . 25
  267.  
  268.           2.0 Keyboard Functions   . . . . . . . . . . . . . . . . . . . 26
  269.           2.1 ADJUST LINE  . . . . . . . . . . . . . . . . . . . . . . . 26
  270.           2.2 BACKSPACE  . . . . . . . . . . . . . . . . . . . . . . . . 26
  271.           2.3 CLEAR MARK   . . . . . . . . . . . . . . . . . . . . . . . 26
  272.           2.4 COMMAND TOGGLE   . . . . . . . . . . . . . . . . . . . . . 26
  273.           2.5 COPY MARK  . . . . . . . . . . . . . . . . . . . . . . . . 27
  274.           2.6 DELETE CHARACTER   . . . . . . . . . . . . . . . . . . . . 27
  275.           2.7 DELETE LINE  . . . . . . . . . . . . . . . . . . . . . . . 27
  276.           2.8 DELETE MARK  . . . . . . . . . . . . . . . . . . . . . . . 27
  277.           2.9 DOWN   . . . . . . . . . . . . . . . . . . . . . . . . . . 27
  278.           2.10 EDIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 27
  279.           2.11 END OF FILE   . . . . . . . . . . . . . . . . . . . . . . 27
  280.           2.12 END OF LINE   . . . . . . . . . . . . . . . . . . . . . . 28
  281.           2.13 END OF MARK   . . . . . . . . . . . . . . . . . . . . . . 28
  282.           2.14 END OF SCREEN   . . . . . . . . . . . . . . . . . . . . . 28
  283.           2.15 ESCAPE  . . . . . . . . . . . . . . . . . . . . . . . . . 28
  284.           2.16 FILE  . . . . . . . . . . . . . . . . . . . . . . . . . . 28
  285.           2.17 FOCUS   . . . . . . . . . . . . . . . . . . . . . . . . . 29
  286.           2.18 HELP  . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  287.           2.19 INSERT LINE   . . . . . . . . . . . . . . . . . . . . . . 29
  288.           2.20 INSERT TOGGLE   . . . . . . . . . . . . . . . . . . . . . 29
  289.           2.21 JOIN LINE   . . . . . . . . . . . . . . . . . . . . . . . 29
  290.           2.22 LEFT  . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  291.           2.23 MARK LEFT   . . . . . . . . . . . . . . . . . . . . . . . 30
  292.           2.24 MARK RIGHT  . . . . . . . . . . . . . . . . . . . . . . . 30
  293.           2.25 MOVE MARK   . . . . . . . . . . . . . . . . . . . . . . . 30
  294.           2.26 NAME  . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  295.           2.27 NEW LINE  . . . . . . . . . . . . . . . . . . . . . . . . 30
  296.           2.28 NEXT FILE   . . . . . . . . . . . . . . . . . . . . . . . 30
  297.           2.29 NEXT LINE   . . . . . . . . . . . . . . . . . . . . . . . 31
  298.           2.30 NEXT TAB  . . . . . . . . . . . . . . . . . . . . . . . . 31
  299.           2.31 NEXT WORD   . . . . . . . . . . . . . . . . . . . . . . . 31
  300.           2.32 NOTHING   . . . . . . . . . . . . . . . . . . . . . . . . 31
  301.           2.33 PAGE DOWN   . . . . . . . . . . . . . . . . . . . . . . . 31
  302.           2.34 PAGE UP   . . . . . . . . . . . . . . . . . . . . . . . . 31
  303.           2.35 PREVIOUS FILE   . . . . . . . . . . . . . . . . . . . . . 31
  304.           2.36 PREVIOUS TAB  . . . . . . . . . . . . . . . . . . . . . . 32
  305.           2.37 PREVIOUS WORD   . . . . . . . . . . . . . . . . . . . . . 32
  306.           2.38 QUIT  . . . . . . . . . . . . . . . . . . . . . . . . . . 32
  307.           2.39 REPEAT FIND   . . . . . . . . . . . . . . . . . . . . . . 32
  308.           2.40 REPEAT LINE   . . . . . . . . . . . . . . . . . . . . . . 32
  309.           2.41 RIGHT   . . . . . . . . . . . . . . . . . . . . . . . . . 32
  310.           2.42 SAFE FILE   . . . . . . . . . . . . . . . . . . . . . . . 32
  311.           2.43 SAVE  . . . . . . . . . . . . . . . . . . . . . . . . . . 33
  312.           2.44 SCROLL DOWN   . . . . . . . . . . . . . . . . . . . . . . 33
  313.           2.45 SCROLL LEFT   . . . . . . . . . . . . . . . . . . . . . . 33
  314.           2.46 SCROLL RIGHT  . . . . . . . . . . . . . . . . . . . . . . 33
  315.           2.47 SCROLL UP   . . . . . . . . . . . . . . . . . . . . . . . 33
  316.           2.48 SET MARK  . . . . . . . . . . . . . . . . . . . . . . . . 33
  317.           2.49 SPLIT LINE  . . . . . . . . . . . . . . . . . . . . . . . 34
  318.  
  319.         
  320.                                                                Contents  iv
  321.  
  322.  
  323.         (C) Copyright IBM Corporation 1987, 1993
  324.         
  325.         
  326.         
  327.           2.50 START OF LINE   . . . . . . . . . . . . . . . . . . . . . 34
  328.           2.51 TOP OF FILE   . . . . . . . . . . . . . . . . . . . . . . 34
  329.           2.52 TOP OF MARK   . . . . . . . . . . . . . . . . . . . . . . 34
  330.           2.53 TOP OF SCREEN   . . . . . . . . . . . . . . . . . . . . . 34
  331.           2.54 TRUNCATE LINE   . . . . . . . . . . . . . . . . . . . . . 34
  332.           2.55 UNDO  . . . . . . . . . . . . . . . . . . . . . . . . . . 34
  333.           2.56 UP  . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  334.           2.57 USER  . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  335.  
  336.           3.0 Settings   . . . . . . . . . . . . . . . . . . . . . . . . 36
  337.           3.1 AUTOMATIC INDENT   . . . . . . . . . . . . . . . . . . . . 36
  338.           3.2 CGA SNOW   . . . . . . . . . . . . . . . . . . . . . . . . 36
  339.           3.3 COMMAND RECALL   . . . . . . . . . . . . . . . . . . . . . 37
  340.           3.4 COMMAND TOGGLE   . . . . . . . . . . . . . . . . . . . . . 37
  341.           3.5 EXACT MATCH  . . . . . . . . . . . . . . . . . . . . . . . 37
  342.           3.6 FOCUS LINE   . . . . . . . . . . . . . . . . . . . . . . . 37
  343.           3.7 HELP COMMAND   . . . . . . . . . . . . . . . . . . . . . . 38
  344.           3.8 HELP LINE  . . . . . . . . . . . . . . . . . . . . . . . . 38
  345.           3.9 INSERT CURSOR  . . . . . . . . . . . . . . . . . . . . . . 38
  346.           3.10 INSERT TOGGLE   . . . . . . . . . . . . . . . . . . . . . 38
  347.           3.11 KEYBOARD TYPE   . . . . . . . . . . . . . . . . . . . . . 39
  348.           3.12 LINE END  . . . . . . . . . . . . . . . . . . . . . . . . 39
  349.           3.13 REPLACE CURSOR  . . . . . . . . . . . . . . . . . . . . . 39
  350.           3.14 RIGHT MARGIN  . . . . . . . . . . . . . . . . . . . . . . 40
  351.           3.15 SEGMENT SIZE  . . . . . . . . . . . . . . . . . . . . . . 40
  352.           3.16 TAB EXPAND  . . . . . . . . . . . . . . . . . . . . . . . 40
  353.           3.17 TAB SPACING   . . . . . . . . . . . . . . . . . . . . . . 40
  354.           3.18 USER COMMAND  . . . . . . . . . . . . . . . . . . . . . . 41
  355.  
  356.           Appendix A.  Messages  . . . . . . . . . . . . . . . . . . . . 42
  357.  
  358.           Appendix B.  User Definable Keys   . . . . . . . . . . . . . . 46
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.         
  384.                                                                 Contents  v
  385.  
  386.  
  387.         (C) Copyright IBM Corporation 1987, 1993
  388.         
  389.         
  390.         
  391.                                                   Part 1.  Using The Editor
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.         
  448.                                                Part 1.  Using The Editor  1
  449.  
  450.  
  451.         (C) Copyright IBM Corporation 1987, 1993
  452.         
  453.         
  454.         
  455.         1.0 INTRODUCTION
  456.  
  457.         T is a full screen text editor for the IBM PC, PS/2 and compatible
  458.         family of machines.  Two versions of the editor are supplied, one
  459.         to run under DOS and the other to run under OS/2.  It is designed
  460.         to be quick and easy to learn and simple to use, while remaining
  461.         both extremely powerful and very small - the DOS version being
  462.         under 10,000 bytes in size.
  463.  
  464.         A very small editor has a number of advantages:
  465.  
  466.         -  It may be used on machines with a limited amount of memory.
  467.            Even a PC with a full 640K of base memory can have a large
  468.            amount of this used up when a number of
  469.            terminate-and-stay-resident type programs are installed - local
  470.            area network drivers and terminal emulators are prime examples.
  471.  
  472.         -  It may be used for editing large files that would be too large
  473.            to load into memory with a bigger editor.
  474.  
  475.         -  It may be invoked from inside other programs yet still have
  476.            enough free memory to edit a good sized file.
  477.  
  478.         -  It loads and starts very quickly indeed.  If you just wish to
  479.            make a small change to your CONFIG.SYS file it can be very
  480.            frustrating to spend time waiting for a large word processor to
  481.            start up.
  482.  
  483.         -  It can be placed on a diskette without consuming much space.
  484.            This can be useful for those "emergency" diskettes used to boot
  485.            up and fix a system when all else fails.
  486.  
  487.         -  It can be placed on a RAM disk without consuming much space.
  488.            This can be useful for palmtop type machines which often have no
  489.            disk drives at all.
  490.  
  491.  
  492.  
  493.         1.1 FEATURES AND OMISSIONS
  494.  
  495.         T has the following main features:
  496.  
  497.         -  Very small size, under 10,000 bytes.
  498.  
  499.         -  Fast, easy to use, full screen interface that adapts
  500.            automatically to use the full size of the display.
  501.  
  502.         -  Edits very large files, subject to available memory.
  503.  
  504.         -  Edits very long lines, up to 65,528 characters.
  505.  
  506.         -  Edits any number of files at once, subject to available memory.
  507.  
  508.         -  On screen help
  509.  
  510.  
  511.         
  512.                                                             Introduction  2
  513.  
  514.  
  515.         (C) Copyright IBM Corporation 1987, 1993
  516.         
  517.         
  518.         
  519.         -  Very fast search and replace functions.
  520.  
  521.         -  Customisable keyboard mapping and screen colours.
  522.  
  523.         -  Any DOS or OS/2 command may be run without leaving the editor.
  524.  
  525.         -  A "right hand margin" and "word-spill" to allow some simple word
  526.            processing to be performed.
  527.  
  528.         -  Native DOS and OS/2 versions, which also run under Windows and
  529.            Windows/NT.
  530.  
  531.         -  OS/2 version has full support for the HPFS.
  532.  
  533.         To keep T small it necessarily lacks some of the more advanced
  534.         features of larger editors and word processors.  In particular:
  535.  
  536.         -  Copying and moving data can only be performed on blocks of one
  537.            or more whole lines.
  538.  
  539.         -  Word processing capabilities are very limited.
  540.  
  541.         -  No programmability, although the appearance and function may be
  542.            customised.
  543.  
  544.         -  No direct support for the mouse or a menu system.
  545.  
  546.  
  547.  
  548.         1.2 WHAT YOU NEED
  549.  
  550.         T should run on any IBM PC, PS/2 or compatible machine.  It needs
  551.         PC-DOS or MS-DOS version 2.00 or later, or any version of OS/2.
  552.         The DOS version may also be run as a DOS application under
  553.         Microsoft Windows and both the DOS and OS/2 versions may be run
  554.         under Windows/NT.
  555.  
  556.         When used with OS/2 or with appropriate versions of Windows it may
  557.         be run from both full screen and windowed command prompts, or may
  558.         be started by placing an object in one of the OS/2 folders or
  559.         Windows Program Manager groups.
  560.  
  561.         T is available inside IBM by requesting the T PACKAGE from PCTOOLS.
  562.         This version is for "IBM Internal Use Only" and may not be
  563.         distributed outside the company.
  564.  
  565.         T is also made freely available outside IBM through the Employee
  566.         Written Software programme.  The file TINYED.ZIP can be obtained
  567.         through CompuServe, from many BBS systems and via anonymous FTP
  568.         from a number of sites (e.g.  software.watson.ibm.com).  The ZIP
  569.         file should be unpacked with PKUNZIP to create the full package.
  570.  
  571.         The T package contains:
  572.  
  573.         T.EXE        This is the DOS version of the editor program.
  574.  
  575.         
  576.                                                             Introduction  3
  577.  
  578.  
  579.         (C) Copyright IBM Corporation 1987, 1993
  580.         
  581.         
  582.         
  583.         T2.EXE       This is the OS/2 version of the editor program.
  584.  
  585.         TKEY.EXE     This is the customiser program.  It will run under
  586.                      both DOS and OS/2 and will customise either version of
  587.                      the editor.
  588.  
  589.         THELP.HLP    This is a simple help file for the standard editor
  590.                      configuration.
  591.  
  592.         TKEYS.DEF    This is a sample custom definition file that describes
  593.                      the standard editor configuration.
  594.  
  595.         T.DOC        This is the full documentation in a plain ASCII
  596.                      printable format.
  597.  
  598.         In addition the publicly available TINYED.ZIP package contains the
  599.         following important file:
  600.  
  601.         LICENSE.TXT  This contains the terms and conditions under which IBM
  602.                      makes the package available.
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.         
  640.                                                             Introduction  4
  641.  
  642.  
  643.         (C) Copyright IBM Corporation 1987, 1993
  644.         
  645.         
  646.         
  647.         2.0 GETTING STARTED
  648.  
  649.         This section describes how to get T up and running, what the screen
  650.         looks like and how to ask for help.
  651.  
  652.  
  653.         2.1 STARTING T
  654.  
  655.         Only the program file (T.EXE for DOS or T2.EXE for OS/2) is
  656.         required to be able to use the editor; this should be located in
  657.         the current directory of the current drive, or in a subdirectory
  658.         listed in your PATH.  The other files are only required if you want
  659.         to customise the editor or if you want to use the supplied help
  660.         file.  These other files would normally be kept on a separate
  661.         diskette or in their own subdirectory (which need not be in the
  662.         PATH).
  663.  
  664.         If you use OS/2 exclusively or use both DOS and OS/2 but keep your
  665.         DOS and OS/2 programs in separate subdirectories you might want to
  666.         rename the OS/2 executable to T.EXE also.  This avoids having to
  667.         remember whether to type T or T2 depending on the environment you
  668.         are using.
  669.  
  670.         Since T is so small it makes sense to put it on a RAMDRIVE if you
  671.         have one installed, this means that it will load almost instantly.
  672.  
  673.         To start T simply enter the following command at the DOS or OS/2
  674.         prompt:
  675.  
  676.              T  <filename> <filename> ...
  677.          or  T2 <filename> <filename> ...
  678.  
  679.  
  680.         You can put any number, including zero, of file names after the
  681.         T command and T will load each file you list into its memory.  If
  682.         you are using the OS/2 HPFS and your file names include spaces you
  683.         must specify the name inside double quotes, so T does not think it
  684.         is two separate file names.
  685.  
  686.  
  687.         2.2 SCREEN LAYOUT
  688.  
  689.         The T screen is divided into four areas:
  690.  
  691.         1. The Message Line and the Help Line.
  692.  
  693.            The bottom line of the screen is used to display error and
  694.            informational messages.  When no messages are displayed this
  695.            line shows instead a single line of "help".  Typically the
  696.            functions assigned to the F-keys are displayed, but this can be
  697.            customised to whatever you find useful.
  698.  
  699.         2. The Status Line.
  700.  
  701.  
  702.  
  703.         
  704.                                                          Getting Started  5
  705.  
  706.  
  707.         (C) Copyright IBM Corporation 1987, 1993
  708.         
  709.         
  710.         
  711.            Above the message line is the status line.  This shows the name
  712.            of the current document and the line and column number of the
  713.            position of the cursor within the document.  If a right-hand
  714.            margin has been set this will also be displayed following an "M"
  715.            margin indicator.  The current typing mode (either "replace" or
  716.            "insert") is also indicated.
  717.  
  718.         3. The Command Line.
  719.  
  720.            Above the status line is the command line.  Any any valid T
  721.            command may be entered here.
  722.  
  723.         4. The Data Area.
  724.  
  725.            The rest of the screen is used to display the document being
  726.            edited.
  727.  
  728.         The size of the data area is automatically adjusted to fill the
  729.         whole of the screen.  Most modern displays can show more than 25
  730.         lines and many can show more than 80 columns.  T itself cannot
  731.         change the size of the display but it will use the full size of the
  732.         screen that is available when it is started.  So to see rather more
  733.         data on the screen first switch to a mode that shows more than 25
  734.         lines then invoke T.  For example, the following command will
  735.         switch to a 43 line 80 column mode under OS/2 or DOS (this needs
  736.         DOS 4.00 or later):
  737.  
  738.              MODE CO80,43
  739.  
  740.  
  741.  
  742.  
  743.         2.3 THE HELP FILE
  744.  
  745.         T is supplied with a simple help file which describes the default
  746.         key settings and the commands available.  When using T for the
  747.         first time ensure that the help file THELP.HLP is available in the
  748.         current directory of the current drive.  Later you can customise
  749.         the editor to allow the help file to be kept somewhere else.
  750.  
  751.         Press the F1 key to load and display the help file.  Then use the
  752.         PgUp and PgDn keys to view the various help panels it contains.  If
  753.         you have a 40-column display use the Home and End keys to view the
  754.         left and right hand panels.
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.         
  768.                                                          Getting Started  6
  769.  
  770.  
  771.         (C) Copyright IBM Corporation 1987, 1993
  772.         
  773.         
  774.         
  775.         3.0 EDITING
  776.  
  777.         This section gives a brief introduction to editing with T.  It
  778.         assumes the editor is used in its default configuration, as
  779.         supplied.  Later sections describe how to customise the editor.
  780.         Anyone who is familiar with the IBM Personal Editor will recognise
  781.         the way T works immediately and should be able to skip most of this
  782.         section - although a glance at "3.4 Word Processing" on page 10 and
  783.         "3.5 Drawing Boxes" on page 12 might be worthwhile.
  784.  
  785.  
  786.         3.1 KEYBOARD FUNCTIONS
  787.  
  788.         Most of the services that T can perform are accessed through
  789.         keyboard functions.  These functions are invoked by pressing the
  790.         key or key combination to which the function is assigned.  Many
  791.         functions are assigned to obvious keys, for example the LEFT
  792.         function (which moves the cursor one character to the left) is
  793.         assigned to the cursor Left key, the RIGHT function (to move the
  794.         cursor right) to the cursor Right key and so on.  Other functions
  795.         are assigned to key combinations that it is hoped provide some sort
  796.         of mnemonic for the function concerned, so for example the REPEAT
  797.         LINE function (to duplicate the current line) is assigned to Alt-R,
  798.         the SPLIT LINE function (to split the current line) to Alt-S and so
  799.         on.  Full details of these keyboard functions and the keys to which
  800.         they are assigned can be found in "2.0 Keyboard Functions" on page
  801.         26.
  802.  
  803.  
  804.         3.2 SIMPLE EDITING
  805.  
  806.         If T is started without any filename (by just entering T on the
  807.         command line) it displays and edits a new, empty, unnamed document.
  808.         A "Top of File" marker line indicates the top of the document and
  809.         an "End of File" marker indicates the end.  These marker lines are
  810.         not part of the document and may not be edited, although the cursor
  811.         may be moved onto them.
  812.  
  813.  
  814.         3.2.1 THE COMMAND LINE
  815.  
  816.         The cursor is initially placed on the command line, which is the
  817.         third line up from the bottom of the screen.  Any T command can be
  818.         entered on the command line and it is executed when the Enter key
  819.         is pressed.  As a command is typed mistakes can be corrected using
  820.         the functions LEFT, RIGHT and BACKSPACE (assigned to the cursor
  821.         Left, cursor Right and the Backspace keys, respectively).  When the
  822.         editor is in "replace" mode any characters typed overwrite those
  823.         already on the screen; when in "insert" mode any characters to the
  824.         right of the cursor are shifted right to make room for the new
  825.         text.  Switch between "insert" and "replace" mode by using the
  826.         function INSERT TOGGLE (assigned to the Ins key).
  827.  
  828.         When on the command line the cursor Up and cursor Down keys recall
  829.         any previous commands entered.  These can then either be entered
  830.  
  831.         
  832.                                                                  Editing  7
  833.  
  834.  
  835.         (C) Copyright IBM Corporation 1987, 1993
  836.         
  837.         
  838.         
  839.         again directly by pressing Enter or can be altered before being
  840.         reused.
  841.  
  842.  
  843.         3.2.2 THE DATA AREA
  844.  
  845.         The cursor may be switched between the data area and the command
  846.         line by using the function COMMAND TOGGLE (Esc key).  When the
  847.         cursor is on the command line a shadow cursor marks the position in
  848.         the data where the real cursor will appear when the function
  849.         COMMAND TOGGLE is used.
  850.  
  851.         When the cursor is in the data area it may be moved anywhere
  852.         between the "Top of File" and "End of File" marker lines.  At any
  853.         place text may be typed from the keyboard.  If the editor is in
  854.         "replace" mode any text typed will overwrite whatever was there
  855.         before, if it is in "insert" mode anything to the right of the
  856.         cursor will be shifted to the right to make room for the new text.
  857.  
  858.         To add a new line use the function INSERT LINE(Ctrl-Enter) and to
  859.         delete a line use the function DELETE LINE (Ctrl-Backspace).
  860.         Alternatively if the editor is in "insert" mode just pressing Enter
  861.         will insert a new blank line (using the function NEW LINE).
  862.  
  863.  
  864.         3.2.3 MARKING AND COPYING LINES
  865.  
  866.         A block of one or more lines may be marked by pressing the function
  867.         SET MARK (Alt-L) on the first and last lines of the required block.
  868.  
  869.         Marked blocks may be deleted using the function DELETE MARK (Alt-D)
  870.         or they be moved or copied somewhere else.  To move or copy a mark
  871.         first position the cursor at the line above the desired new
  872.         position, then use either the function MOVE MARK (Alt-M) or COPY
  873.         MARK (Alt-C).
  874.  
  875.         Marked blocks are also useful for limiting the scope of a CHANGE or
  876.         LOCATE command (described later).
  877.  
  878.         It is also possible to shift all marked lines one character to the
  879.         left or right by using the functions MARK LEFT (Shift-F7) or MARK
  880.         RIGHT (Shift-F8) respectively.  This can be used to indent blocks
  881.         of code when writing programs, for example.
  882.  
  883.         To duplicate a copy of the current line just use the function
  884.         REPEAT LINE (Alt-R).
  885.  
  886.  
  887.         3.2.4 SAVING DOCUMENTS
  888.  
  889.         If a document has a name (displayed on the status line) it can be
  890.         saved to disk simply by using the function SAVE (F2); once saved
  891.         you may quit the document with the function QUIT (F3).  Alternately
  892.         you can perform a save and quit in one operation by using the
  893.         function SAFE FILE (F4).  If a document doesn't have a name you
  894.  
  895.         
  896.                                                                  Editing  8
  897.  
  898.  
  899.         (C) Copyright IBM Corporation 1987, 1993
  900.         
  901.         
  902.         
  903.         must give it one: either use the NAME command to name the document
  904.         or use the SAVE or FILE commands along with a filename parameter.
  905.  
  906.         Note: Using the function SAFE FILE (F4) will not cause the document
  907.         to be written to disk if it has not been changed.  If you want to
  908.         force an unchanged document to be re-written to disk simply use the
  909.         FILE command from the command line.
  910.  
  911.  
  912.         3.2.5 WORKING ON SEVERAL DOCUMENTS
  913.  
  914.         T can edit any number of documents at once.  The documents are held
  915.         in an edit ring, and although only one can be displayed on the
  916.         screen at one time, you can cycle through the ring by using the
  917.         functions NEXT FILE (F10) or PREVIOUS FILE (F11).  The actual
  918.         number of documents you can hold in the ring depends on the size of
  919.         each document and how much memory your machine has; each document
  920.         has to be completely loaded in memory.
  921.  
  922.         To load multiple documents you can either enter several filenames
  923.         when T is started from the command line, or you can issue EDIT
  924.         commands to load more files once T is running.
  925.  
  926.         The marked line functions MOVE MARK (Alt-M) and COPY MARK (Alt-C)
  927.         are particularly useful when editing several documents as lines can
  928.         be moved and copied to and from different documents.
  929.  
  930.  
  931.         3.3 SEARCH AND REPLACE
  932.  
  933.  
  934.  
  935.         3.3.1 SEARCHING
  936.  
  937.         To search for a particular word or phrase in a document switch onto
  938.         the command line and use the LOCATE command.  In its simplest form
  939.         you just enter a command rather like this:
  940.  
  941.              /word
  942.  
  943.  
  944.         This will search the document for the next occurrence of "word".
  945.         T will only search from the current position forwards, so to search
  946.         from the top you first need to move to the top by using the
  947.         function TOP OF FILE (Ctrl-Home).
  948.  
  949.         Having found a match you can repeat the search to find the next
  950.         match simply by using the function REPEAT FIND (Alt-F).  If no
  951.         further matches can be found before the end of the document the
  952.         message "No match found" will be displayed.
  953.  
  954.         Normally LOCATE commands are case-sensitive i.e. a search for
  955.         "word" would not find "WORD" or even "Word".  To do a
  956.         case-insensitive search add the "c" option to the command, like
  957.         this:
  958.  
  959.         
  960.                                                                  Editing  9
  961.  
  962.  
  963.         (C) Copyright IBM Corporation 1987, 1993
  964.         
  965.         
  966.         
  967.              /word/c
  968.  
  969.  
  970.  
  971.  
  972.         3.3.2 REPLACING
  973.  
  974.         To change one word or phrase into something else switch onto the
  975.         command line and use the CHANGE command, for example:
  976.  
  977.              C/this/that
  978.  
  979.  
  980.         This will search for the next occurrence of the word "this" and
  981.         then prompt for an action with the message "Yes/No/Go/Last/Quit?".
  982.         Hit either Y, N, G, L or Q as appropriate:
  983.  
  984.         Yes   To change this occurrence of "this" into "that" and to search
  985.               for the next occurrence of "this".
  986.  
  987.         No    To skip this change, but to continue searching.
  988.  
  989.         Go    To make this change and all further changes to the end of the
  990.               document without any further prompting.
  991.  
  992.         Last  To make this change and to stop searching, so this becomes
  993.               the last change.
  994.  
  995.         Quit  To skip this change and stop searching.
  996.  
  997.         To avoid the prompt message and to make all changes straightaway
  998.         add the "*" option to the command:
  999.  
  1000.              C/this/that/*
  1001.  
  1002.  
  1003.  
  1004.  
  1005.         3.4 WORD PROCESSING
  1006.  
  1007.         T is not designed to be a word processor, but it does provide some
  1008.         very simple word processing functions that are useful for creating
  1009.         quick notes or for entering marked-up documents that will later be
  1010.         formatted with a batch formatter.
  1011.  
  1012.  
  1013.         3.4.1 THE RIGHT MARGIN AND WORD SPILL
  1014.  
  1015.         The command MARGIN allows a right hand margin column to be set.
  1016.         When a margin is set the status line indicates its column number
  1017.         with "M nnn".  To set the right hand margin to column 72 you would
  1018.         enter the command:
  1019.  
  1020.              MARGIN 72
  1021.  
  1022.  
  1023.         
  1024.                                                                 Editing  10
  1025.  
  1026.  
  1027.         (C) Copyright IBM Corporation 1987, 1993
  1028.         
  1029.         
  1030.         
  1031.         As text is entered into the document any words that are typed
  1032.         across the right hand margin are automatically word-spilled onto a
  1033.         new inserted line.  This means it is possible to type whole
  1034.         paragraphs without having to worry about hitting Enter at the end
  1035.         of each line.  As words spill onto a new line they are
  1036.         automatically indented from the left hand side so as they align
  1037.         under the first non-blank character of the line above.  This makes
  1038.         it very simple to leave a left margin or to enter whole sections
  1039.         indented.
  1040.  
  1041.  
  1042.         3.4.2 THE ADJUST LINE FUNCTION
  1043.  
  1044.         If corrections need to be made to text entered with a right margin
  1045.         the text will not be reflowed automatically to keep the margins
  1046.         correct; in fact after making a number of corrections it will tend
  1047.         to end up in rather a mess.  The function ADJUST LINE (Alt-A) is
  1048.         provided to tidy up this mess and re-align everything correctly.
  1049.         ADJUST LINE is performed by pressing Alt-A and will adjust the
  1050.         current line to the current right margin setting.  If the line is
  1051.         too short it will be filled out with words from the next line down
  1052.         and if it is too long it will be split in two.  As with the
  1053.         word-spill, when ADJUST LINE spills words onto the next line they
  1054.         are aligned under the first non-blank character of the preceding
  1055.         line.
  1056.  
  1057.         ADJUST LINE will ignore blank lines, skipping over them and moving
  1058.         the cursor to the next line down, and if a line needs to be split
  1059.         in two the cursor will move down to the split-off portion.  This
  1060.         makes re-adjusting whole paragraphs very simple, just place the
  1061.         cursor on the first line of the paragraph and keep pressing Alt-A
  1062.         until it is re-flowed correctly.
  1063.  
  1064.         Note: When a line is too short and ADJUST LINE fills with words
  1065.         from the next line, these words are joined to the line with just
  1066.         one intervening blank.  If before the ADJUST LINE the last
  1067.         character happened to be a full stop at the end of a sentence you
  1068.         may need to go back and insert an extra space to maintain the
  1069.         convention of two blanks following a sentence end.
  1070.  
  1071.  
  1072.         3.5 DRAWING BOXES
  1073.  
  1074.         The PC character set contains a group of special symbols that can
  1075.         be used to draw boxes.  T assigns the box corner and intersection
  1076.         characters to the keys Alt-1 to Alt-9.  As a reminder of which box
  1077.         corner is assigned to which key, just look at the numeric keypad
  1078.         which is arranged like this:
  1079.  
  1080.              7  8  9
  1081.              4  5  6
  1082.              1  2  3
  1083.  
  1084.  
  1085.  
  1086.  
  1087.         
  1088.                                                                 Editing  11
  1089.  
  1090.  
  1091.         (C) Copyright IBM Corporation 1987, 1993
  1092.         
  1093.         
  1094.         
  1095.         So the Alt-7 key produces a top left box corner, the Alt-3 a bottom
  1096.         right and so on.  Remember that the keypad just provides a mnemonic
  1097.         - you must actually enter characters using the Alt-key and the
  1098.         numerals along the top of the main keyboard area.
  1099.  
  1100.         The horizontal line is assigned to Alt-- (Alt-minus) and the
  1101.         vertical line to Alt-= (Alt-equals).  These two may need
  1102.         reassigning to use other keys on non-English language keyboards,
  1103.         where the "-" and "=" keys don't appear on the top row just after
  1104.         the numerals.  This can be done by customising the editor (see "4.0
  1105.         Customising" on page 14).
  1106.  
  1107.  
  1108.         3.6 PRINTING
  1109.  
  1110.         To print the current document switch onto the command line and
  1111.         enter the PRINT command.  No special facilities are provided for
  1112.         formatted printing, the PRINT command will simply write a copy of
  1113.         the current document to the printer.  If used with no parameters
  1114.         PRINT will write to the device PRN, which for most people will be
  1115.         the printer attached to their machine.  If you have a serially
  1116.         attached printer or use a LAN printer you may need to specify the
  1117.         printer device, for example:
  1118.  
  1119.              PRINT COM1
  1120.          or  PRINT LPT2
  1121.  
  1122.  
  1123.         To print a piece of a document first mark the block of lines to be
  1124.         printed, then use the PUT command to write them to a device.  A
  1125.         device must be specified with the PUT command, so normally you
  1126.         would use:
  1127.  
  1128.              PUT PRN
  1129.  
  1130.  
  1131.  
  1132.  
  1133.         3.6.1 PRINTER CONTROL CODES
  1134.  
  1135.         You may embed printer control codes directly in your documents if
  1136.         you want to produce special effects such as bold or emphasised.
  1137.         You will need to refer to your printer's documentation to determine
  1138.         exactly which control codes are available and what they do.
  1139.  
  1140.         Control codes can normally be entered directly using the keypad on
  1141.         the right of the keyboard: hold down the Alt key and type the
  1142.         decimal value of the required control code on the keypad then
  1143.         release the Alt key.  The control code should appear at the cursor
  1144.         position, most control codes show up on the screen as odd little
  1145.         symbols.
  1146.  
  1147.         Some codes can also be entered using other keys, but these will
  1148.         require the use of the function ESCAPE (Alt-X).  For example to
  1149.         enter a form feed (ASCII value 12) you can either use the keypad
  1150.  
  1151.         
  1152.                                                                 Editing  12
  1153.  
  1154.  
  1155.         (C) Copyright IBM Corporation 1987, 1993
  1156.         
  1157.         
  1158.         
  1159.         method described above (hold down Alt, key 1 2 on the keypad and
  1160.         release Alt), or press ESCAPE (Alt-X) followed by Ctrl-L ("L" being
  1161.         the 12th letter of the alphabet).
  1162.  
  1163.  
  1164.         3.6.2 PRINTER SET UP
  1165.  
  1166.         You may prefer not to place the printer control codes directly in
  1167.         the document, but to keep the document as plain, readable text.
  1168.         But you may want to send a few special characters to the printer
  1169.         before printing a document, perhaps to switch the printer to NLQ
  1170.         mode.
  1171.  
  1172.         These printer set up sequences can be issued with a DOS ECHO
  1173.         command, for example to put a Proprinter into NLQ mode issue the
  1174.         following command:
  1175.  
  1176.              DOS ECHO xG >PRN
  1177.  
  1178.  
  1179.         where the "x" should be an ASCII "Esc" control code entered by
  1180.         hitting Alt-X followed by the Esc key.
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.         
  1216.                                                                 Editing  13
  1217.  
  1218.  
  1219.         (C) Copyright IBM Corporation 1987, 1993
  1220.         
  1221.         
  1222.         
  1223.         4.0 CUSTOMISING
  1224.  
  1225.         This section describes how you can customise T to match your own
  1226.         preferences for screen colours, keyboard layouts and special
  1227.         settings.  Even if you like T exactly the way it is supplied and
  1228.         don't want to change any of the colours or keys, you will probably
  1229.         still need to customise some of the special settings, at least to
  1230.         tell the editor where you keep its help file.
  1231.  
  1232.         To customise T you must first construct a custom definition
  1233.         file, which is described in detail in the next section.  Then use
  1234.         the TKEY.EXE customiser program to customise your copy of the
  1235.         editor, by entering this command on the DOS or OS/2 command line:
  1236.  
  1237.              TKEY  custom.DEF  editor.EXE
  1238.  
  1239.  
  1240.         Replace "custom.DEF" with the name of your custom definition file
  1241.         and replace "editor.EXE" with the name the editor you want to
  1242.         customise.  Unless you tell it otherwise TKEY will assume the
  1243.         custom definition file has an extension of .DEF and the editor of
  1244.         .EXE.  So to customise both the DOS and the OS/2 versions with a
  1245.         custom definition file called TCUST.DEF you would use the two
  1246.         commands:
  1247.  
  1248.              TKEY TCUST T
  1249.          and TKEY TCUST T2
  1250.  
  1251.  
  1252.         Once the customising is complete the changes are recorded
  1253.         permanently inside the editor's .EXE file.  You no longer need
  1254.         either the TKEY program or your custom definition file, unless you
  1255.         decide to make further changes.
  1256.  
  1257.  
  1258.         4.1 THE CUSTOM DEFINITION FILE
  1259.  
  1260.         The custom definition file contains a description of the way you
  1261.         want T to be configured.  An example of a custom definition file is
  1262.         supplied with T, this is called TKEYS.DEF and contains the
  1263.         description of the default configuration.  This file serves as a
  1264.         good example of how to write a custom definition, but should be
  1265.         used for reference only.  You should create your own custom
  1266.         definition file and call it something other than TKEYS.DEF.  This
  1267.         will ensure that if you ever obtain a new copy the T package you do
  1268.         not lose any changes you made.  Of course a good way to start your
  1269.         own definition file would be to copy TKEYS.DEF under another name.
  1270.  
  1271.         The custom definition file contains four sorts of item.  Normally
  1272.         each item is placed on a new line, although one item can be split
  1273.         over several lines or several items can be placed on one line if
  1274.         desired.
  1275.  
  1276.         1. Comments.
  1277.  
  1278.  
  1279.         
  1280.                                                             Customising  14
  1281.  
  1282.  
  1283.         (C) Copyright IBM Corporation 1987, 1993
  1284.         
  1285.         
  1286.         
  1287.            Comments are ignored by the customiser program and serve to make
  1288.            the definition file more readable.  Comments come in three
  1289.            flavours:
  1290.  
  1291.            a. Anything between the comment markers /* and */.  Comments of
  1292.               this sort can extend over several lines if required.
  1293.  
  1294.            b. Anything between the comment marker // and the end of the
  1295.               line.
  1296.  
  1297.            c. Several special words and symbols are also ignored: blank
  1298.               lines, blank spaces, ON, OF, TO, IS, ; (semicolon) and =
  1299.               (equals sign)..
  1300.  
  1301.         2. Colour and Mono Commands
  1302.  
  1303.            Colour and Mono commands define the colours used for the various
  1304.            parts of the screen on different types of display.
  1305.  
  1306.         3. Key Commands
  1307.  
  1308.            Key commands assign keyboard functions or single characters to
  1309.            keys.
  1310.  
  1311.         4. Set Commands
  1312.  
  1313.            Set commands alter the editor's special settings.
  1314.  
  1315.         In the following descriptions uppercase will be used to indicate
  1316.         keywords and lowercase to indicate parameters you must enter.
  1317.         Items in angle brackets are optional.  In your custom definition
  1318.         file you may use any mixture of upper- or lowercase.
  1319.  
  1320.  
  1321.         4.1.1 COLOUR AND MONO COMMANDS
  1322.  
  1323.              COLOUR area = <attr> fgcol ON <attr> bgcol
  1324.          or  COLOR  area = <attr> fgcol ON <attr> bgcol
  1325.          or  MONO   area = <attr> style
  1326.  
  1327.  
  1328.         Colour and Mono commands define the colours that will be used for
  1329.         the various areas of the screen.  Two forms of the command can be
  1330.         used, indicated by the keywords COLOUR (spelled COLOR if you
  1331.         prefer) or MONO.  The COLOUR colours are used on colour screens and
  1332.         the MONO colours are used on monochrome screens or colour screens
  1333.         when in a black-and-white mode (this latter feature can be useful
  1334.         when a colour adapter is driving a monochrome screen, as is often
  1335.         the case with LCD portables).
  1336.  
  1337.         The following parameters should be provided:
  1338.  
  1339.         area   is an area of the screen.  It should be one of:
  1340.                    DATA LINES
  1341.                    MARK LINES
  1342.  
  1343.         
  1344.                                                             Customising  15
  1345.  
  1346.  
  1347.         (C) Copyright IBM Corporation 1987, 1993
  1348.         
  1349.         
  1350.         
  1351.                    SHOW LINES
  1352.                    SHADOW CURSOR
  1353.                    STATUS LINE
  1354.                    HELP LINE
  1355.                    MESSAGE LINE
  1356.  
  1357.                Most of these refer to the obvious screen items or areas.
  1358.                SHOW LINES refers to those lines displayed in the data area
  1359.                that are not a part of the actual document being edited (for
  1360.                example the "Top of File" marker line).
  1361.  
  1362.         attr   is one or more attributes associated with the colour or
  1363.                style it precedes.  It can be omitted if no attributes are
  1364.                required or specified as one or more of:
  1365.                    BRIGHT or LIGHT
  1366.                    BLINKING
  1367.  
  1368.         fgcol  is the foreground colour for colour displays, specified as
  1369.                one of:
  1370.                    BLACK
  1371.                    BLUE
  1372.                    GREEN
  1373.                    TURQUOISE or CYAN
  1374.                    RED
  1375.                    PINK or MAGENTA
  1376.                    BROWN
  1377.                    WHITE
  1378.                    GREY or GRAY
  1379.                    YELLOW
  1380.  
  1381.         bgcol  is the background colour for colour displays specified from
  1382.                the same choices as the foreground colours.  Only the BRIGHT
  1383.                (or LIGHT) attribute may precede the background colour.
  1384.  
  1385.         style  is the style of text used for monochrome displays specified
  1386.                as one of:
  1387.                    NORMAL
  1388.                    REVERSE
  1389.                    UNDERLINE
  1390.  
  1391.         Note: Not all combinations of attributes and colours or styles are
  1392.         meaningful or useable on all systems, although the customiser
  1393.         program may accept them.  In particular the BRIGHT attribute has no
  1394.         effect on the REVERSE style, the UNDERLINED style may not always be
  1395.         available, the colour YELLOW is the same as BRIGHT BROWN and the
  1396.         colour GREY is the same as BRIGHT BLACK.  Also note that on some
  1397.         machines a BRIGHT background will actually produce a BLINKING
  1398.         foreground instead - bear this in mind if YELLOW (i.e. BRIGHT
  1399.         BROWN) or GREY (i.e. BRIGHT BLACK) are chosen as background
  1400.         colours.
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.         
  1408.                                                             Customising  16
  1409.  
  1410.  
  1411.         (C) Copyright IBM Corporation 1987, 1993
  1412.         
  1413.         
  1414.         
  1415.         4.1.2 KEY COMMANDS
  1416.  
  1417.              KEY <shift->keyname = function
  1418.          or  DEF <shift->keyname = function
  1419.          or  KEY <shift->keyname = character
  1420.          or  DEF <shift->keyname = character
  1421.  
  1422.  
  1423.         Key commands assign the editor's keyboard functions or single ASCII
  1424.         characters to user definable keys.  The parameters are:
  1425.  
  1426.         shift-     is the shift key that must be pressed.  It is omitted
  1427.                    for unshifted keys or specified as one of:
  1428.  
  1429.                    S-  for either of the shift keys
  1430.  
  1431.                    C-  for the Ctrl key
  1432.  
  1433.                    A-  for the Alt key
  1434.  
  1435.         keyname    is chosen from:
  1436.                        A to Z
  1437.                        0 to 9
  1438.                        F1 to F12
  1439.                        - (the minus key)
  1440.                        = (the equals key)
  1441.                        [ (the open square bracket key)
  1442.                        ] (the close square bracket key)
  1443.                        \ (the backslash key)
  1444.                        ESC
  1445.                        TAB
  1446.                        BACKSPACE
  1447.                        ENTER
  1448.                        PADENTER
  1449.                        HOME
  1450.                        END
  1451.                        PGUP
  1452.                        PGDN
  1453.                        UP
  1454.                        DOWN
  1455.                        LEFT
  1456.                        RIGHT
  1457.                        INS
  1458.                        DEL
  1459.                        PAD5
  1460.  
  1461.                    Not all shift-keyname combinations are valid, and some
  1462.                    are not available for use on the older PC keyboard (the
  1463.                    one with 10 F-keys over on the left).  See "Appendix B.
  1464.                    User Definable Keys" on page 46 for a full list of
  1465.                    combinations.
  1466.  
  1467.         function   is one of the keyboard functions.  The full list of
  1468.                    keyboard functions is defined in "2.0 Keyboard
  1469.                    Functions" on page 26.
  1470.  
  1471.         
  1472.                                                             Customising  17
  1473.  
  1474.  
  1475.         (C) Copyright IBM Corporation 1987, 1993
  1476.         
  1477.         
  1478.         
  1479.         character  is a single ASCII character.  This can either be
  1480.                    specified as the character itself in quotes, or using
  1481.                    the form:
  1482.  
  1483.              ASCII nnn
  1484.  
  1485.  
  1486.                    where nnn is the character's ASCII code point.  This
  1487.                    allows characters not normally present on the keyboard
  1488.                    (such as the box drawing characters) to be assigned to
  1489.                    keys.
  1490.  
  1491.  
  1492.  
  1493.         4.1.3 SET COMMANDS
  1494.  
  1495.              SET item = value
  1496.  
  1497.  
  1498.         Set commands allow customising of the special editor settings.
  1499.         These are described in detail in "3.0 Settings" on page 36.
  1500.  
  1501.  
  1502.         4.2 THE HELP AND USER FUNCTIONS
  1503.  
  1504.         The HELP and USER keyboard functions are rather special and quite
  1505.         powerful features.  The HELP and USER functions work in an
  1506.         identical way, the fact that one is called "HELP" is only really to
  1507.         suggest a good use for the function.  Once you are familiar with
  1508.         the way T works you may decide you no longer really need a help
  1509.         system, and you can then use the HELP function for something else
  1510.         completely.
  1511.  
  1512.         The functions are defined by two items in the custom definition
  1513.         file.  Firstly the keyboard function is assigned to key, and
  1514.         secondly a T command is assigned to the function.  For example:
  1515.  
  1516.              KEY F1 = HELP
  1517.              SET HELP COMMAND = "EDIT THELP.HLP"
  1518.  
  1519.  
  1520.         In this example the HELP keyboard function is assigned to the F1
  1521.         key and the function is then assigned the command "EDIT THELP.HLP".
  1522.  
  1523.         When the HELP keyboard function is pressed (i.e. F1 is pressed)
  1524.         T will execute the assigned command, just as if it had been typed
  1525.         on the command line.  In this example it will therefore load and
  1526.         display a help file.
  1527.  
  1528.         The command that is assigned to the function can be any command
  1529.         that could be entered on the T command line, so some other useful
  1530.         applications might be:
  1531.  
  1532.         -  Use the standard T help file but locate it in the \EDITORS
  1533.            subdirectory on the C: drive:
  1534.  
  1535.         
  1536.                                                             Customising  18
  1537.  
  1538.  
  1539.         (C) Copyright IBM Corporation 1987, 1993
  1540.         
  1541.         
  1542.         
  1543.              KEY F1 = HELP
  1544.              SET HELP COMMAND = "T C:\EDITORS\THELP.HLP"
  1545.  
  1546.  
  1547.         -  Set Alt-P to print the current document to COM1:
  1548.  
  1549.              KEY A-P = USER
  1550.              SET USER COMMAND = "PRINT COM1"
  1551.  
  1552.  
  1553.         -  Set Alt-H to invoke an external HELP program for a subject
  1554.            called "T":
  1555.  
  1556.              KEY A-H = HELP
  1557.              SET HELP COMMAND = "DOS HELP T"
  1558.  
  1559.  
  1560.         -  Set the F5 key to shell out to a DOS or OS/2 command prompt:
  1561.  
  1562.              KEY F5 = USER
  1563.              SET USER COMMAND = "DOS"
  1564.  
  1565.  
  1566.  
  1567.  
  1568.         4.3 THE ENHANCED KEYBOARD
  1569.  
  1570.         Most recent PCs and all PS/2s come with IBM's Enhanced Keyboard.
  1571.         This is the keyboard with twelve function keys arranged across the
  1572.         top and an extra set of cursor control keys between the typewriter
  1573.         keys and the numeric keypad.  Older PCs and some notebook style
  1574.         machines have a keyboard with just ten function keys.  To make use
  1575.         of the extra keys on the Enhanced Keyboard a program must work in a
  1576.         different way from that which was used to handle the old-style
  1577.         keyboards, if the old-style interface is used only the subset of
  1578.         keys present on the older keyboard will be recognised.
  1579.  
  1580.         T attempts to determine which type of keyboard interface to use, so
  1581.         that if an Enhanced Keyboard is attached all its keys will be
  1582.         available.  However the tests used to decide which type of keyboard
  1583.         is present can be fooled by some non-IBM BIOSs and by some older
  1584.         TSR programs that were created before the Enhanced Keyboard was
  1585.         available.  This usually shows up as a problem when the editor
  1586.         starts: the command line becomes full of a repeated character and
  1587.         the editor hangs.
  1588.  
  1589.         In situations like these you must force T to use the old keyboard
  1590.         interface by putting this line in your custom definition file:
  1591.  
  1592.              SET KEYBOARD TYPE = STANDARD
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.         
  1600.                                                             Customising  19
  1601.  
  1602.  
  1603.         (C) Copyright IBM Corporation 1987, 1993
  1604.         
  1605.         
  1606.         
  1607.                                                   Part 2.  Editor Reference
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.         
  1664.                                               Part 2.  Editor Reference  20
  1665.  
  1666.  
  1667.         (C) Copyright IBM Corporation 1987, 1993
  1668.         
  1669.         
  1670.         
  1671.         1.0 COMMANDS
  1672.  
  1673.         This section describes each of the commands that may be entered on
  1674.         the T command line.  In describing the syntax of the commands,
  1675.         uppercase letters are used for the command name and lowercase
  1676.         letters for any parameters you must supply.  Optional parameters
  1677.         are enclosed in angle brackets.  Commands may actually be entered
  1678.         in any mixture of upper- or lowercase.
  1679.  
  1680.         Where the parameters call for a filename any valid DOS or OS/2 file
  1681.         name may be used.  This may include the drive letter and directory
  1682.         path if required; if none is given the current drive and directory
  1683.         will be used, following the normal conventions.  When using the
  1684.         OS/2 High Performance File System (HPFS) filenames are not limited
  1685.         to the DOS "8-dot-3" format and any upper- or lowercase characters
  1686.         used will be preserved.
  1687.  
  1688.  
  1689.         1.1 APPEND
  1690.  
  1691.              APPEND filename
  1692.  
  1693.  
  1694.         The currently marked lines are written to the file
  1695.         "filename".  The lines are added to the end of the file, preserving
  1696.         any former contents.  The file is created if it does not exist.
  1697.  
  1698.  
  1699.         1.2 CHANGE
  1700.  
  1701.              C /target/replacement</options>
  1702.  
  1703.  
  1704.         The next occurrence of the text "target" starting from the current
  1705.         cursor position, is located.  Then the message
  1706.         "Yes/No/Go/Last/Quit?" is displayed, to which you should reply with
  1707.         one of:
  1708.  
  1709.         Y  to change this instance of "target" into
  1710.            "replacement".  The next occurrence of "target" is then found
  1711.            and the process repeats.
  1712.  
  1713.         N  to not change this instance of "target", but to continue
  1714.            searching for the next occurrence.
  1715.  
  1716.         G  to change this instance of "target" into
  1717.            "replacement" and then to change all further instances (until to
  1718.            end of the document) without further prompting.
  1719.  
  1720.         L  to change this instance of "target" into
  1721.            "replacement" and then to stop the command, so this becomes the
  1722.            last change made.
  1723.  
  1724.         Q  to stop the change command without making any further changes.
  1725.  
  1726.  
  1727.         
  1728.                                                                Commands  21
  1729.  
  1730.  
  1731.         (C) Copyright IBM Corporation 1987, 1993
  1732.         
  1733.         
  1734.         
  1735.         The "/" character is a delimiter and can be replaced with any
  1736.         character that does not occur in either the "target" or the
  1737.         "replacement".  Note that the delimiter is the first non-blank
  1738.         character following the C command.
  1739.  
  1740.         Following a final delimiter any of these options may be used:
  1741.  
  1742.         m  to restrict the changes to the marked lines only.
  1743.  
  1744.         *  to change all occurrences of "target" to
  1745.            "replacement" without prompting.
  1746.  
  1747.         Note: Change commands are always case-sensitive.
  1748.  
  1749.  
  1750.         1.3 DOS
  1751.  
  1752.              DOS <command>
  1753.          or  .<command>
  1754.  
  1755.  
  1756.         A secondary DOS or OS/2 shell is started to execute the
  1757.         "command".  A full stop may be used as a quick abbreviation for the
  1758.         word DOS.
  1759.  
  1760.         If no "command" is given the DOS or OS/2 command line prompt will
  1761.         appear.  You can return to T by entering the command EXIT.
  1762.  
  1763.  
  1764.         1.4 EDIT
  1765.  
  1766.              EDIT <filename>
  1767.          or  E <filename>
  1768.          or  T <filename>
  1769.  
  1770.  
  1771.         If a "filename" is given T will switch directly to display that
  1772.         document.  The file will be loaded from disk, if it is not already
  1773.         in the edit ring.
  1774.  
  1775.         If no "filename" is given the next document in the edit ring will
  1776.         be selected.
  1777.  
  1778.  
  1779.         1.5 FILE
  1780.  
  1781.              FILE <filename>
  1782.          or  F <filename>
  1783.  
  1784.  
  1785.         The current document will be saved to disk and then removed from
  1786.         the edit ring.  If a "filename" is given the document will be saved
  1787.         under this name, otherwise the name shown on the status line will
  1788.         be used.
  1789.  
  1790.  
  1791.         
  1792.                                                                Commands  22
  1793.  
  1794.  
  1795.         (C) Copyright IBM Corporation 1987, 1993
  1796.         
  1797.         
  1798.         
  1799.         1.6 GET
  1800.  
  1801.              GET filename
  1802.  
  1803.  
  1804.         The contents of "filename" will be inserted into the current
  1805.         document following the current line.
  1806.  
  1807.  
  1808.         1.7 GOTO
  1809.  
  1810.              GOTO linenum
  1811.          or  linenum
  1812.  
  1813.  
  1814.         Line number "linenum" will become the current line and will be
  1815.         displayed on the focus line.  If "linenum" is bigger than the
  1816.         number of lines in the document the last line will become the
  1817.         current line.  The word GOTO is optional, just entering the
  1818.         required "linenum" on the command line is sufficient.
  1819.  
  1820.  
  1821.         1.8 LOCATE
  1822.  
  1823.              L /target</options>
  1824.          or  /target</options>
  1825.  
  1826.  
  1827.         The next occurrence of the text "target", starting from the current
  1828.         cursor position, will be located and displayed on the focus line.
  1829.         If the "L /target" form of the command is used the delimiter,
  1830.         "/", may be replaced by any character that does not occur in
  1831.         "target".
  1832.  
  1833.         Following a final delimiter any of these options may be used:
  1834.  
  1835.         m  to restrict the search to the marked lines only.
  1836.  
  1837.         e  to force an exact-case match.
  1838.  
  1839.         c  to force an any-case match.  (Apologies to non-English speakers:
  1840.            only the 26 letters "a" to "z" are correctly handled.)
  1841.  
  1842.         Note: if neither e nor c is given the editor's EXACT MATCH setting
  1843.         is used.  This may be customised - refer to "4.0 Customising" on
  1844.         page 14 for more details.
  1845.  
  1846.  
  1847.         1.9 MARGIN
  1848.  
  1849.              MARGIN column
  1850.          or  M column
  1851.  
  1852.  
  1853.  
  1854.  
  1855.         
  1856.                                                                Commands  23
  1857.  
  1858.  
  1859.         (C) Copyright IBM Corporation 1987, 1993
  1860.         
  1861.         
  1862.         
  1863.         The right hand margin will be set to "column".  To remove the right
  1864.         hand margin enter a column value of zero.  The margin column is
  1865.         displayed on the status line in the form "M nnn".
  1866.  
  1867.         The margin is used by the word-spill features: as words are typed
  1868.         across the margin column they are automatically spilled onto the
  1869.         next line.  It is also used by the ADJUST LINE keyboard function
  1870.         (see "3.4 Word Processing" on page 10).
  1871.  
  1872.  
  1873.         1.10 NAME
  1874.  
  1875.              NAME <name>
  1876.          or  N <name>
  1877.  
  1878.  
  1879.         The current document will be renamed to "name".
  1880.  
  1881.  
  1882.         1.11 PRINT
  1883.  
  1884.              PRINT <device>
  1885.  
  1886.  
  1887.         The current document will be printed.  It is printed to the named
  1888.         "device", if one is specified, otherwise the device PRN is used.
  1889.  
  1890.  
  1891.         1.12 PUT
  1892.  
  1893.             PUT filename
  1894.  
  1895.  
  1896.         The currently marked lines will be written to the file
  1897.         "filename".  Any former contents of the file are lost.
  1898.  
  1899.         Note: The marked lines can be printed using the command PUT PRN.
  1900.  
  1901.  
  1902.         1.13 QUIT
  1903.  
  1904.              QUIT <ALL>
  1905.          or  Q <ALL>
  1906.  
  1907.  
  1908.         If used without the "ALL" parameter the current document will be
  1909.         removed from the edit ring.  It will not be saved to disk.  If any
  1910.         changes have been made, since the document was last saved, the
  1911.         message "Throw away changes? (y/n)" is displayed; hit either Y or N
  1912.         as appropriate.
  1913.  
  1914.         If the "ALL" parameter is specified all the current documents will
  1915.         be discarded without saving any changes and the editor will end and
  1916.         return to the operating system.  This parameter should be used with
  1917.         care.
  1918.  
  1919.         
  1920.                                                                Commands  24
  1921.  
  1922.  
  1923.         (C) Copyright IBM Corporation 1987, 1993
  1924.         
  1925.         
  1926.         
  1927.         1.14 SAVE
  1928.  
  1929.              SAVE <filename>
  1930.          or  S <filename>
  1931.  
  1932.  
  1933.         The current document will be saved to disk.  If a
  1934.         "filename" is given the document will be saved under this name,
  1935.         otherwise the name shown on the status line will be used.
  1936.  
  1937.  
  1938.         1.15 VERSION
  1939.  
  1940.              VER
  1941.  
  1942.  
  1943.         The T name, version number and copyright notice will be displayed.
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.         
  1984.                                                                Commands  25
  1985.  
  1986.  
  1987.         (C) Copyright IBM Corporation 1987, 1993
  1988.         
  1989.         
  1990.         
  1991.         2.0 KEYBOARD FUNCTIONS
  1992.  
  1993.         This section describes each of the keyboard functions that are
  1994.         available to the editor.  Keyboard functions are invoked by
  1995.         pressing the key to which they have been assigned.  This assignment
  1996.         is made in a custom definition file using entries of the form:
  1997.  
  1998.              KEY key = function
  1999.          or  DEF key = function
  2000.  
  2001.  
  2002.         The descriptions which follow include the default key to which the
  2003.         function is assigned.
  2004.  
  2005.  
  2006.         2.1 ADJUST LINE
  2007.  
  2008.         Default key: Alt-A
  2009.  
  2010.         Adjusts the current line to the right hand margin setting.  If the
  2011.         line extends beyond the margin it is split; if it does not reach
  2012.         the margin it is filled with words from the next line.  If a split
  2013.         occurs and the special setting AUTOMATIC INDENT is ON (see "3.0
  2014.         Settings" on page 36), the split-off portion will align under the
  2015.         first non-blank character of the previous line.
  2016.  
  2017.         ADJUST LINE will ignore blank lines and, when a line is split, the
  2018.         cursor will move to the split-off portion.  This makes it
  2019.         particularly simple to re-adjust a paragraph after making changes
  2020.         or altering the right hand margin.
  2021.  
  2022.  
  2023.         2.2 BACKSPACE
  2024.  
  2025.         Default key: Backspace
  2026.  
  2027.         Deletes the character to the left of the cursor, and moves the
  2028.         cursor one character to the left.
  2029.  
  2030.  
  2031.         2.3 CLEAR MARK
  2032.  
  2033.         Default key: Alt-U
  2034.  
  2035.         Un-marks any marked lines.
  2036.  
  2037.  
  2038.         2.4 COMMAND TOGGLE
  2039.  
  2040.         Default key: Esc
  2041.  
  2042.         Switches the cursor between the command line and the data area.
  2043.         When the cursor is on the command line a shadow cursor marks the
  2044.         current position in the data.
  2045.  
  2046.  
  2047.         
  2048.                                                      Keyboard Functions  26
  2049.  
  2050.  
  2051.         (C) Copyright IBM Corporation 1987, 1993
  2052.         
  2053.         
  2054.         
  2055.         2.5 COPY MARK
  2056.  
  2057.         Default key: Alt-C
  2058.  
  2059.         Inserts a copy the marked lines following the current line.  If
  2060.         there are several documents in the edit ring this may be used to
  2061.         copy lines from one document to another.
  2062.  
  2063.  
  2064.         2.6 DELETE CHARACTER
  2065.  
  2066.         Default key: Del
  2067.  
  2068.         Deletes the character at the cursor.
  2069.  
  2070.  
  2071.         2.7 DELETE LINE
  2072.  
  2073.         Default key: Ctrl-Backspace
  2074.  
  2075.         Deletes the current line.
  2076.  
  2077.  
  2078.         2.8 DELETE MARK
  2079.  
  2080.         Default key: Alt-D
  2081.  
  2082.         Deletes the marked lines.
  2083.  
  2084.  
  2085.         2.9 DOWN
  2086.  
  2087.         Default key: Down
  2088.  
  2089.         Moves the cursor down one line.
  2090.  
  2091.  
  2092.         2.10 EDIT
  2093.  
  2094.         Default key: F8
  2095.  
  2096.         Switches to the command line and keys in the command EDIT, ready
  2097.         for you to enter a filename.
  2098.  
  2099.  
  2100.         2.11 END OF FILE
  2101.  
  2102.         Default key: Ctrl-End
  2103.  
  2104.         Makes the current line the last line in the document, and positions
  2105.         this line at the bottom of the screen.
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.         
  2112.                                                      Keyboard Functions  27
  2113.  
  2114.  
  2115.         (C) Copyright IBM Corporation 1987, 1993
  2116.         
  2117.         
  2118.         
  2119.         2.12 END OF LINE
  2120.  
  2121.         Default key: End
  2122.  
  2123.         Moves the cursor to the position one character after the last
  2124.         character on the current line.
  2125.  
  2126.  
  2127.         2.13 END OF MARK
  2128.  
  2129.         Default key: Alt-E
  2130.  
  2131.         Makes the current line the last marked line, and positions this
  2132.         line on the focus line.  If the marked lines are in a different
  2133.         document that document will become the current document.
  2134.  
  2135.  
  2136.         2.14 END OF SCREEN
  2137.  
  2138.         Default key: Ctrl-PgDn
  2139.  
  2140.         Moves the cursor to the last line of the document on the screen.
  2141.  
  2142.  
  2143.         2.15 ESCAPE
  2144.  
  2145.         Default key: Alt-X
  2146.  
  2147.         This allows the entry of ASCII characters using keys on the
  2148.         keyboard that would normally perform a function.  Typically this is
  2149.         useful when entering printer control codes into a document.
  2150.  
  2151.         For example to enter the ASCII "Esc" character first use the
  2152.         ESCAPE function then press the Esc key.
  2153.  
  2154.         It is also possible to enter any ASCII character from 1 to 255
  2155.         using the numeric keypad on the right of the keyboard.  Press and
  2156.         hold the Alt key then type the decimal ASCII value on the keypad,
  2157.         release the Alt key and the character will appear.  Using the
  2158.         keypad in this way does not require the ESCAPEfunction.
  2159.  
  2160.         Note: To enter an ASCII NUL (character code 0) use the Ctrl-2 key.
  2161.  
  2162.  
  2163.         2.16 FILE
  2164.  
  2165.         Default key: None
  2166.  
  2167.         Writes the current document to disk using the name shown on the
  2168.         status line, then removes the document from the edit ring.
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.         
  2176.                                                      Keyboard Functions  28
  2177.  
  2178.  
  2179.         (C) Copyright IBM Corporation 1987, 1993
  2180.         
  2181.         
  2182.         
  2183.         2.17 FOCUS
  2184.  
  2185.         Default key: F12
  2186.  
  2187.         This places the current line onto the defined screen focus line.
  2188.         The focus line is defined by the special setting FOCUS LINE (see
  2189.         "3.0 Settings" on page 36).
  2190.  
  2191.  
  2192.         2.18 HELP
  2193.  
  2194.         Default key: F1
  2195.  
  2196.         Causes the command specified by the special setting HELP COMMAND
  2197.         (see "3.0 Settings" on page 36) to be executed.  Refer to "4.2 The
  2198.         HELP and USER Functions" on page 18 for more details about using
  2199.         the HELP function.
  2200.  
  2201.  
  2202.         2.19 INSERT LINE
  2203.  
  2204.         Default key: Ctrl-Enter and Ctrl-PadEnter
  2205.  
  2206.         Inserts a new blank line following the current line.  If the
  2207.         special setting AUTOMATIC INDENT is ON the cursor will be aligned
  2208.         under the first non-blank character of the preceding line.
  2209.  
  2210.  
  2211.         2.20 INSERT TOGGLE
  2212.  
  2213.         Default key: Ins
  2214.  
  2215.         Toggles the editor between "insert" and "replace" modes.  The shape
  2216.         of the cursor and the Rep/Ins indicator on the status line show
  2217.         which mode is active.
  2218.  
  2219.  
  2220.         2.21 JOIN LINE
  2221.  
  2222.         Default key: Alt-J
  2223.  
  2224.         Joins together the current line and the following line.  The lines
  2225.         are joined with a single blank between them.
  2226.  
  2227.  
  2228.         2.22 LEFT
  2229.  
  2230.         Default key: Left
  2231.  
  2232.         Moves the cursor one character to the left.
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.         
  2240.                                                      Keyboard Functions  29
  2241.  
  2242.  
  2243.         (C) Copyright IBM Corporation 1987, 1993
  2244.         
  2245.         
  2246.         
  2247.         2.23 MARK LEFT
  2248.  
  2249.         Default key: Shift-F7
  2250.  
  2251.         The marked lines are shifted one character to the left.  Only the
  2252.         characters to the right of the cursor position are shifted, so if
  2253.         you want to shift the whole line be sure to first position the
  2254.         cursor at the left hand edge.  Any characters moved to the left of
  2255.         the cursor column are lost.
  2256.  
  2257.  
  2258.         2.24 MARK RIGHT
  2259.  
  2260.         Default key: Shift-F8
  2261.  
  2262.         The marked lines are shifted one character to the right.  Only the
  2263.         characters to the right of the cursor position are shifted, so if
  2264.         you want to shift the whole line be sure to first position the
  2265.         cursor at the left hand edge.
  2266.  
  2267.  
  2268.         2.25 MOVE MARK
  2269.  
  2270.         Default key: Alt-M
  2271.  
  2272.         Moves the marked lines so they come after the current line.  If
  2273.         there are several documents in the edit ring this may be used to
  2274.         move lines from one document to another.
  2275.  
  2276.  
  2277.         2.26 NAME
  2278.  
  2279.         Default key: F7
  2280.  
  2281.         Switches to the command line and keys in the command NAME, ready
  2282.         for you to enter a new document name.
  2283.  
  2284.  
  2285.         2.27 NEW LINE
  2286.  
  2287.         Default key: Enter
  2288.  
  2289.         If in "insert" mode this will perform an INSERT LINE function, if
  2290.         in "replace" mode it will perform a NEXT LINE function.
  2291.  
  2292.  
  2293.         2.28 NEXT FILE
  2294.  
  2295.         Default key: F10
  2296.  
  2297.         Makes the next document in the edit ring the current document.
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.         
  2304.                                                      Keyboard Functions  30
  2305.  
  2306.  
  2307.         (C) Copyright IBM Corporation 1987, 1993
  2308.         
  2309.         
  2310.         
  2311.         2.29 NEXT LINE
  2312.  
  2313.         Default key: PadEnter
  2314.  
  2315.         Moves the cursor to the start of the next line in the document.
  2316.  
  2317.  
  2318.         2.30 NEXT TAB
  2319.  
  2320.         Default key: Tab
  2321.  
  2322.         Moves the cursor right to the next tab stop.  Tab stops are defined
  2323.         by the special setting TAB SPACING (see "3.0 Settings" on page 36).
  2324.  
  2325.  
  2326.         2.31 NEXT WORD
  2327.  
  2328.         Default key: Ctrl-Right
  2329.  
  2330.         Moves the cursor to the first character of the next word on the
  2331.         line.  A word is considered to be sequence of non-blank characters.
  2332.  
  2333.  
  2334.         2.32 NOTHING
  2335.  
  2336.         This function does nothing.  It is used when customising the editor
  2337.         to remove the default function from a key.
  2338.  
  2339.  
  2340.         2.33 PAGE DOWN
  2341.  
  2342.         Default key: PgDn
  2343.  
  2344.         Scrolls the current document down by one screen-full.
  2345.  
  2346.  
  2347.         2.34 PAGE UP
  2348.  
  2349.         Default key: PgUp
  2350.  
  2351.         Scrolls the current document up by one screen-full.
  2352.  
  2353.  
  2354.         2.35 PREVIOUS FILE
  2355.  
  2356.         Default keys: F11
  2357.  
  2358.         Makes the previous document in the edit ring the current document.
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.         
  2368.                                                      Keyboard Functions  31
  2369.  
  2370.  
  2371.         (C) Copyright IBM Corporation 1987, 1993
  2372.         
  2373.         
  2374.         
  2375.         2.36 PREVIOUS TAB
  2376.  
  2377.         Default key: Shift-Tab
  2378.  
  2379.         Moves the cursor left to the previous tab stop.  Tab stops are
  2380.         defined by the special setting TAB SPACING (see "3.0 Settings" on
  2381.         page 36).
  2382.  
  2383.  
  2384.         2.37 PREVIOUS WORD
  2385.  
  2386.         Default key: Ctrl-Left
  2387.  
  2388.         Moves the cursor to the first character of the previous word on the
  2389.         line.  A word is considered to be sequence of non-blank characters.
  2390.  
  2391.  
  2392.         2.38 QUIT
  2393.  
  2394.         Default key: F3
  2395.  
  2396.         Removes the current document from the edit ring.  If changes have
  2397.         been made to the document since it was last saved the message
  2398.         "Throw away changes? (y/n)" is displayed; hit either Y or N as
  2399.         appropriate.
  2400.  
  2401.  
  2402.         2.39 REPEAT FIND
  2403.  
  2404.         Default key: Alt-F
  2405.  
  2406.         Repeats the last LOCATE command that was issued.
  2407.  
  2408.  
  2409.         2.40 REPEAT LINE
  2410.  
  2411.         Default key: Alt-R
  2412.  
  2413.         Inserts a copy of the current line immediately following the
  2414.         current line.
  2415.  
  2416.  
  2417.         2.41 RIGHT
  2418.  
  2419.         Default key: Right
  2420.  
  2421.         Moves the cursor one character to the right.
  2422.  
  2423.  
  2424.         2.42 SAFE FILE
  2425.  
  2426.         Default key: F4
  2427.  
  2428.         If the document has changed this performs the FILEfunction, if the
  2429.         document has not changed it performs a QUIT.
  2430.  
  2431.         
  2432.                                                      Keyboard Functions  32
  2433.  
  2434.  
  2435.         (C) Copyright IBM Corporation 1987, 1993
  2436.         
  2437.         
  2438.         
  2439.         2.43 SAVE
  2440.  
  2441.         Default key: F2
  2442.  
  2443.         Writes the current document to disk under the name shown on the
  2444.         status line.
  2445.  
  2446.  
  2447.         2.44 SCROLL DOWN
  2448.  
  2449.         Default key: Shift-F4
  2450.  
  2451.         Scrolls the entire screen down by one line.
  2452.  
  2453.  
  2454.         2.45 SCROLL LEFT
  2455.  
  2456.         Default key: Shift-F1
  2457.  
  2458.         Scrolls the entire screen left by one character.
  2459.  
  2460.  
  2461.         2.46 SCROLL RIGHT
  2462.  
  2463.         Default key: Shift-F2
  2464.  
  2465.         Scrolls the entire screen right by one character.
  2466.  
  2467.  
  2468.         2.47 SCROLL UP
  2469.  
  2470.         Default key: Shift-F3
  2471.  
  2472.         Scrolls the entire screen up by one line.
  2473.  
  2474.  
  2475.         2.48 SET MARK
  2476.  
  2477.         Default key: Alt-L
  2478.  
  2479.         Marks one or more lines thus:
  2480.  
  2481.         -  If no lines are marked the current line only is marked.
  2482.  
  2483.         -  If one or more lines are already marked and the current line is
  2484.            outside the mark, the mark is extended to include the current
  2485.            line.
  2486.  
  2487.         -  If one or more lines are already marked and the current line is
  2488.            inside the mark, the mark is shrunk so the current line becomes
  2489.            the bottom of the mark.
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.         
  2496.                                                      Keyboard Functions  33
  2497.  
  2498.  
  2499.         (C) Copyright IBM Corporation 1987, 1993
  2500.         
  2501.         
  2502.         
  2503.         2.49 SPLIT LINE
  2504.  
  2505.         Default key: Alt-S
  2506.  
  2507.         Splits the current line into two at the cursor position.  If the
  2508.         special setting AUTOMATIC INDENT is ON the split-off portion aligns
  2509.         under the first non-blank character of the preceding line.
  2510.  
  2511.  
  2512.         2.50 START OF LINE
  2513.  
  2514.         Default key: Home
  2515.  
  2516.         Moves the cursor to the beginning of the current line.
  2517.  
  2518.  
  2519.         2.51 TOP OF FILE
  2520.  
  2521.         Default key: Ctrl-Home
  2522.  
  2523.         Makes the current line the first line in the document, and
  2524.         positions this line at the top of the screen.
  2525.  
  2526.  
  2527.         2.52 TOP OF MARK
  2528.  
  2529.         Default key: Alt-Y
  2530.  
  2531.         Makes the current line the first marked line.  If the marked lines
  2532.         are in a different document that document will become the current
  2533.         document.
  2534.  
  2535.  
  2536.         2.53 TOP OF SCREEN
  2537.  
  2538.         Default key: Ctrl-PgUp
  2539.  
  2540.         Moves the cursor to the first line of the document on the screen.
  2541.  
  2542.  
  2543.         2.54 TRUNCATE LINE
  2544.  
  2545.         Default keys: Alt-T
  2546.  
  2547.         Deletes all the characters on the current line to the right of the
  2548.         cursor.
  2549.  
  2550.  
  2551.         2.55 UNDO
  2552.  
  2553.         Default key: F9
  2554.  
  2555.         Provides a very limited error recovery.  Any changes made to the
  2556.         current line are undone.
  2557.  
  2558.  
  2559.         
  2560.                                                      Keyboard Functions  34
  2561.  
  2562.  
  2563.         (C) Copyright IBM Corporation 1987, 1993
  2564.         
  2565.         
  2566.         
  2567.         2.56 UP
  2568.  
  2569.         Default key: Up
  2570.  
  2571.         Moves the cursor up one line.
  2572.  
  2573.  
  2574.         2.57 USER
  2575.  
  2576.         Default key: F5
  2577.  
  2578.         Causes the command specified by the special setting USER COMMAND
  2579.         (see "3.0 Settings" on page 36) to be executed.  Refer to "4.2 The
  2580.         HELP and USER Functions" on page 18 for more information about the
  2581.         USER function.
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.         
  2624.                                                      Keyboard Functions  35
  2625.  
  2626.  
  2627.         (C) Copyright IBM Corporation 1987, 1993
  2628.         
  2629.         
  2630.         
  2631.         3.0 SETTINGS
  2632.  
  2633.         This section describes each of the special settings that may be
  2634.         defined when customising the editor.  These are entered in a custom
  2635.         definition file using entries of the form:
  2636.  
  2637.              SET item = value
  2638.  
  2639.  
  2640.  
  2641.  
  2642.         3.1 AUTOMATIC INDENT
  2643.  
  2644.              SET AUTOMATIC INDENT = ON
  2645.          or  SET AUTOMATIC INDENT = OFF
  2646.  
  2647.  
  2648.         This defines what the cursor will do when a new line is inserted.
  2649.         If it is set ON the cursor will be automatically indented so it
  2650.         aligns under the first non-blank character of the preceding line.
  2651.         If it is set OFF the cursor will always move to the left hand edge.
  2652.  
  2653.         The action of word-spill and the functions SPLIT LINE and ADJUST
  2654.         LINE are also affected by this setting.
  2655.  
  2656.  
  2657.         3.2 CGA SNOW
  2658.  
  2659.              SET CGA SNOW = ON
  2660.          or  SET CGA SNOW = OFF
  2661.  
  2662.  
  2663.         The old CGA card for the PC can produce "snow" on the display if
  2664.         the display is updated at the wrong times.  This can be eliminated
  2665.         but at the expense of slowing down scrolling speed.  When set to
  2666.         OFF T will look for the presence of the old CGA card and if it
  2667.         finds one it will ensure the snow does not occur.  When set to ON
  2668.         T will not attempt to eliminate the snow.
  2669.  
  2670.         Some types of display may appear to T as the old CGA adapter when
  2671.         in fact they are not and so could never create the snow problem.
  2672.         This is true for PCJrs, 3270PCs, some clone displays and the LCD
  2673.         displays found on many older laptops.  When using one of these
  2674.         displays setting CGA SNOW to ON may improve scrolling speed
  2675.         somewhat.
  2676.  
  2677.         This setting is ignored if a more recent display adapter (EGA, VGA,
  2678.         SVGA etc.) is installed, since these can never suffer from the
  2679.         "snow" problem.
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.         
  2688.                                                                Settings  36
  2689.  
  2690.  
  2691.         (C) Copyright IBM Corporation 1987, 1993
  2692.         
  2693.         
  2694.         
  2695.         3.3 COMMAND RECALL
  2696.  
  2697.              SET COMMAND RECALL = ON
  2698.          or  SET COMMAND RECALL = OFF
  2699.  
  2700.  
  2701.         This specifies whether or not previous command line commands will
  2702.         be kept available for recall by the cursor up and cursor down keys.
  2703.         If it is set ON command line commands are saved, if it is set OFF
  2704.         commands cannot be recalled.
  2705.  
  2706.  
  2707.         3.4 COMMAND TOGGLE
  2708.  
  2709.              SET COMMAND TOGGLE = DATA
  2710.          or  SET COMMAND TOGGLE = COMMAND
  2711.  
  2712.  
  2713.         This determines whether, when a new document is loaded, the cursor
  2714.         starts in the data area or on the command line.
  2715.  
  2716.  
  2717.         3.5 EXACT MATCH
  2718.  
  2719.              SET EXACT MATCH = ON
  2720.          or  SET EXACT MATCH = OFF
  2721.  
  2722.  
  2723.         This determines whether, by default, LOCATE commands take account
  2724.         of upper and lower case during searching.  If set ON the search
  2725.         must match exactly, if set OFF upper and lower case are considered
  2726.         identical.  The default can always be overridden with the locate
  2727.         command options "e" or "c".
  2728.  
  2729.         Note: Exact case match searches are very much faster and would be
  2730.         preferable when searching large documents.
  2731.  
  2732.  
  2733.         3.6 FOCUS LINE
  2734.  
  2735.              SET FOCUS LINE = row
  2736.          or  SET FOCUS LINE = -row
  2737.          or  SET FOCUS LINE = OFF
  2738.  
  2739.  
  2740.         The FOCUS LINE is the line within the data area that is used to
  2741.         display the current line when the FOCUS keyboard function is used.
  2742.         It is also the line used to display the result of a LOCATE or GOTO
  2743.         command.  The line may be specified as a positive number from the
  2744.         top of the screen or a negative number from the bottom of the
  2745.         screen.
  2746.  
  2747.         If set to OFF no focus row is defined.  The FOCUS function will
  2748.         have no effect and the target of LOCATE and GOTO commands will be
  2749.         displayed on whatever line currently contains the cursor.
  2750.  
  2751.         
  2752.                                                                Settings  37
  2753.  
  2754.  
  2755.         (C) Copyright IBM Corporation 1987, 1993
  2756.         
  2757.         
  2758.         
  2759.         3.7 HELP COMMAND
  2760.  
  2761.              SET HELP COMMAND = command
  2762.  
  2763.  
  2764.         The "command" should be a enclosed in single or double quotes.  It
  2765.         is the T command that will be executed when the HELP keyboard
  2766.         function is pressed.  Any valid T command can be given.
  2767.  
  2768.         For example:
  2769.  
  2770.              SET HELP COMMAND = "T THELP.HLP"
  2771.  
  2772.  
  2773.  
  2774.  
  2775.         3.8 HELP LINE
  2776.  
  2777.              SET HELP LINE = text
  2778.  
  2779.  
  2780.         The "text" should be enclosed in single or double quotes.  It is
  2781.         the text that will be displayed on the bottom line of the screen
  2782.         when there are no messages.
  2783.  
  2784.         Several "text" strings may be specified and they will concatenated
  2785.         together, this can be useful if you want to split the text over
  2786.         more than one line.
  2787.  
  2788.         For example:
  2789.  
  2790.              SET HELP LINE = "F1=Help F2=Save F3=Quit"
  2791.  
  2792.  
  2793.  
  2794.  
  2795.         3.9 INSERT CURSOR
  2796.  
  2797.              SET INSERT CURSOR = LINE
  2798.          or  SET INSERT CURSOR = HALF
  2799.          or  SET INSERT CURSOR = FULL
  2800.  
  2801.  
  2802.         This sets the shape of the cursor that is used when T is in
  2803.         "insert" typing mode.  LINE uses an underscore line cursor, HALF
  2804.         uses a half-height character block and FULL uses a full-height
  2805.         character block.
  2806.  
  2807.  
  2808.         3.10 INSERT TOGGLE
  2809.  
  2810.              SET INSERT TOGGLE = REPLACE
  2811.          or  SET INSERT TOGGLE = INSERT
  2812.  
  2813.  
  2814.  
  2815.         
  2816.                                                                Settings  38
  2817.  
  2818.  
  2819.         (C) Copyright IBM Corporation 1987, 1993
  2820.         
  2821.         
  2822.         
  2823.         This determines whether T initially starts up in "insert" or
  2824.         "replace" mode.
  2825.  
  2826.  
  2827.         3.11 KEYBOARD TYPE
  2828.  
  2829.              SET KEYBOARD TYPE = DEFAULT
  2830.          or  SET KEYBOARD TYPE = STANDARD
  2831.  
  2832.  
  2833.         If set to DEFAULT T will test if an Enhanced Keyboard (with 12
  2834.         F-keys across the top) is installed and if it finds one it will
  2835.         automatically make full use of it.
  2836.  
  2837.         If set to STANDARD T will assume the keyboard is an old style
  2838.         keyboard (with 10 F-keys over on the left).  This provides
  2839.         compatibility with some clone BIOSs and with some older TSR
  2840.         programs, but loses the ability to use the newer keys like F11 and
  2841.         F12.  See "4.3 The Enhanced Keyboard" on page 19 for more details.
  2842.  
  2843.  
  2844.         3.12 LINE END
  2845.  
  2846.              SET LINE END = DEFAULT
  2847.          or  SET LINE END = DOS
  2848.          or  SET LINE END = UNIX
  2849.  
  2850.  
  2851.         This determines how line ends will be interpreted when files are
  2852.         read from and written to disk.  If set to DOS line ends are
  2853.         indicated by the pair of characters hex 0D (carriage return)
  2854.         followed by hex 0A (line feed), as is the standard for DOS
  2855.         applications.  If set to UNIX lines ends are indicated by the
  2856.         single character hex 0A (new line), as is the standard for UNIX
  2857.         applications.
  2858.  
  2859.         When set to DEFAULT, T will read both DOS and UNIX style files and
  2860.         will always write DOS style files.
  2861.  
  2862.  
  2863.         3.13 REPLACE CURSOR
  2864.  
  2865.              SET REPLACE CURSOR = LINE
  2866.          or  SET REPLACE CURSOR = HALF
  2867.          or  SET REPLACE CURSOR = FULL
  2868.  
  2869.  
  2870.         This sets the shape of the cursor that is used when T is in
  2871.         "replace" typing mode.  LINE uses an underscore line cursor, HALF
  2872.         uses a half-height character block and FULL uses a full-height
  2873.         character block.
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.         
  2880.                                                                Settings  39
  2881.  
  2882.  
  2883.         (C) Copyright IBM Corporation 1987, 1993
  2884.         
  2885.         
  2886.         
  2887.         3.14 RIGHT MARGIN
  2888.  
  2889.              SET RIGHT MARGIN = column
  2890.          or  SET RIGHT MARGIN = OFF
  2891.  
  2892.  
  2893.         This sets an initial right hand margin column.  See "3.4 Word
  2894.         Processing" on page 10 for details about the function of the
  2895.         margin.  If set to OFF no initial margin is set.
  2896.  
  2897.  
  2898.         3.15 SEGMENT SIZE
  2899.  
  2900.              SET SEGMENT SIZE = DEFAULT
  2901.          or  SET SEGMENT SIZE = size
  2902.  
  2903.  
  2904.         This determines the size of the storage segments that T obtains
  2905.         from the operating system.  It should be set to a number between 8
  2906.         and 64 which specifies the segment size in K-bytes, or to DEFAULT
  2907.         which gives the best size for the operating system.  In turn this
  2908.         segment size determines the maximum line length that can be
  2909.         handled; the maximum being a few bytes less than the segment size.
  2910.  
  2911.         In general DOS works best with smaller segment sizes and OS/2 works
  2912.         better with larger sizes.  Setting DEFAULT will provide 8K segments
  2913.         under DOS and 64K under OS/2.
  2914.  
  2915.  
  2916.         3.16 TAB EXPAND
  2917.  
  2918.              SET TAB EXPAND = ON
  2919.          or  SET TAB EXPAND = OFF
  2920.  
  2921.  
  2922.         This setting determines how T will treat tab characters in
  2923.         documents that are read from disk.  If set ON tabs will be expanded
  2924.         with spaces up to the next tab stop (as determined by the TAB
  2925.         SPACING setting).  If set OFF tabs are treated just like any other
  2926.         character.
  2927.  
  2928.         Note: If set ON the tabs are expanded to spaces as the document is
  2929.         loaded from disk and are then discarded.  If the document is saved
  2930.         it will not contain the original tab characters.
  2931.  
  2932.  
  2933.         3.17 TAB SPACING
  2934.  
  2935.              SET TAB SPACING = number
  2936.  
  2937.  
  2938.         Tabs are equally spaced across the document starting from column 1.
  2939.         The spacing is set with this option.
  2940.  
  2941.  
  2942.  
  2943.         
  2944.                                                                Settings  40
  2945.  
  2946.  
  2947.         (C) Copyright IBM Corporation 1987, 1993
  2948.         
  2949.         
  2950.         
  2951.         For example:
  2952.  
  2953.              SET TAB SPACING = 8
  2954.  
  2955.  
  2956.  
  2957.  
  2958.         3.18 USER COMMAND
  2959.  
  2960.              SET USER COMMAND = command
  2961.  
  2962.  
  2963.         The "command" should be enclosed in single or double quotes.  It is
  2964.         the T command that will be executed when the USER keyboard function
  2965.         is pressed.  Any valid T command can given.
  2966.  
  2967.         For example:
  2968.  
  2969.              SET USER COMMAND = "DOS"
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.         
  3008.                                                                Settings  41
  3009.  
  3010.  
  3011.         (C) Copyright IBM Corporation 1987, 1993
  3012.         
  3013.         
  3014.         
  3015.         APPENDIX A.  MESSAGES
  3016.  
  3017.         This section provides a list of all the messages that T produces.
  3018.         It gives the reasons for each message and the action that should be
  3019.         taken.
  3020.  
  3021.         Except where noted these messages will all be displayed in the
  3022.         editor's message line and will be removed at the next keystroke.
  3023.  
  3024.         Cannot call OS
  3025.  
  3026.         The DOS command was unable to start up a secondary DOS or OS/2
  3027.         command processor.  Normally this indicates that there is not
  3028.         enough free memory, you will have to remove some documents from the
  3029.         ring if you want to issue the DOS command.
  3030.  
  3031.         If you believe there is enough free memory and the problem still
  3032.         exists it may be that DOS cannot locate its command processor.
  3033.         From the DOS prompt issue the command SET; you should see a series
  3034.         of lines one of which is of this form indicating where your copy of
  3035.         COMMAND.COM is located:
  3036.  
  3037.              COMSPEC=d:\path\COMMAND.COM
  3038.  
  3039.  
  3040.         If this is not present or is incorrect you may need to add a SET
  3041.         COMSPEC= line to your AUTOEXEC.BAT file.
  3042.  
  3043.         Cannot open file
  3044.  
  3045.         T is unable to open the requested disk file.  Normally this means
  3046.         that the filename is invalid for some reason, perhaps it contains
  3047.         characters not valid in a file name, or perhaps it conflicts with
  3048.         the name of a device or directory already on the disk.
  3049.  
  3050.         On a diskette system it may also indicate that the diskette drive
  3051.         is not ready, perhaps it does not contain a diskette or the drive
  3052.         door is open.
  3053.  
  3054.         Error reading file
  3055.  
  3056.         An error occurred while a document was being read from disk.  This
  3057.         is rare error and might indicate there are problems with the disk.
  3058.  
  3059.         Error writing file - NOT saved
  3060.  
  3061.         An error occurred while a document was being written to disk.
  3062.         Normally this means the disk became full while the file was being
  3063.         written.  You should save the file to another disk, one that has
  3064.         enough free space.
  3065.  
  3066.         File not found
  3067.  
  3068.         You attempted to GET a file that does not exist.  Check the
  3069.         spelling of the filename, maybe the file you want is not in the
  3070.  
  3071.         
  3072.                                                   Appendix A.  Messages  42
  3073.  
  3074.  
  3075.         (C) Copyright IBM Corporation 1987, 1993
  3076.         
  3077.         
  3078.         
  3079.         current directory and so needs a drive and/or directory path
  3080.         pre-pended to it.
  3081.  
  3082.         Incorrect parameter
  3083.  
  3084.         The parameter supplied to a T command was incorrect.  For the GOTO
  3085.         and MARGIN command the parameter must be a number less than 65535,
  3086.         for the QUIT command no parameter other than ALL is valid.
  3087.  
  3088.         Line too long
  3089.  
  3090.         This message indicates an attempt was made to load or to create a
  3091.         line longer than the maximum possible line length.  If this happens
  3092.         while loading a file the load will be aborted, the document in
  3093.         memory will be incomplete so you should QUIT straight away without
  3094.         saving.  Maximum line length is affected by the SEGMENT SIZE
  3095.         special setting - refer to "3.0 Settings" on page 36 for more
  3096.         details.
  3097.  
  3098.         Loading...
  3099.  
  3100.         Displays while a document is being loaded from disk.
  3101.  
  3102.         Mark already set
  3103.  
  3104.         You tried to mark a line, but a mark already exists in another
  3105.         document in the ring, only one document at a time may contain a
  3106.         mark.  If you no longer require the other mark first use the
  3107.         function CLEAR MARK.
  3108.  
  3109.         New file
  3110.  
  3111.         You asked to edit a document that does not exist on disk.  T has
  3112.         created a new empty document with the name you specified.
  3113.  
  3114.         No filename given
  3115.  
  3116.         The commands GET, PUT and APPEND must have a filename parameter
  3117.         specified.
  3118.  
  3119.         No marked lines
  3120.  
  3121.         The commands PUT and APPEND work on the currently marked lines.
  3122.         Some lines must be marked if the command is used.
  3123.  
  3124.         No match found
  3125.  
  3126.         The "target" specified in a LOCATE or CHANGE command cannot be
  3127.         found.  Remember that these commands only search from the current
  3128.         position forwards to the end of the document.  To search from the
  3129.         top first use the function TOP OF FILE.
  3130.  
  3131.         Out of memory
  3132.  
  3133.  
  3134.  
  3135.         
  3136.                                                   Appendix A.  Messages  43
  3137.  
  3138.  
  3139.         (C) Copyright IBM Corporation 1987, 1993
  3140.         
  3141.         
  3142.         
  3143.         T has run out of memory, you should save one or more of the
  3144.         documents in the ring to make space before continuing.  Most T
  3145.         commands and functions have no effect while the "Out of memory"
  3146.         condition exists.
  3147.  
  3148.         Press any key to continue
  3149.  
  3150.         This message is printed by the secondary DOS or OS/2 command shell
  3151.         started by the DOS command.  It is produced just before the command
  3152.         shell returns to T, and allows you some time to read whatever
  3153.         output is on the screen.
  3154.  
  3155.         Printer not ready
  3156.  
  3157.         The PRINT command could not complete correctly.  This may mean the
  3158.         printer is not turned on or set online, or it is not connected, or
  3159.         that it has run out of paper.  Or any number of other reasons that
  3160.         cause printers to fail.
  3161.  
  3162.         Printing...
  3163.  
  3164.         Displays while a document is being printed.
  3165.  
  3166.         Saving...
  3167.  
  3168.         Displays while a document is being saved.
  3169.  
  3170.         Source and destination conflict
  3171.  
  3172.         You cannot move or copy marked lines on top of themselves.  Move
  3173.         the cursor out of the marked area and try again.
  3174.  
  3175.         T cannot be started
  3176.  
  3177.         This message is printed by DOS if, when T is first loaded, there is
  3178.         not enough free memory get it started.  This can happen if you have
  3179.         a lot of TSR type programs loaded or if you are nested inside
  3180.         several other applications.
  3181.  
  3182.         Throw away changes? (y/n)
  3183.  
  3184.         You tried to QUIT a document that has been changed since it was
  3185.         last saved.  This message gives you a chance to save changes if the
  3186.         QUIT was selected accidentally.
  3187.  
  3188.         Type a character...
  3189.  
  3190.         The ESCAPE function takes the next character entered on the
  3191.         keyboard as an absolute ASCII code and enters it into the document.
  3192.         While ESCAPE is waiting for this character it displays a message.
  3193.  
  3194.         Unknown command
  3195.  
  3196.         You entered a command on the command line that is not a T command.
  3197.         Check the spelling of the command, or precede it by the word DOS
  3198.  
  3199.         
  3200.                                                   Appendix A.  Messages  44
  3201.  
  3202.  
  3203.         (C) Copyright IBM Corporation 1987, 1993
  3204.         
  3205.         
  3206.         
  3207.         (or a full stop) if it is a DOS or OS/2 command rather than a T
  3208.         command.
  3209.  
  3210.         Yes/No/Go/Last/Quit?
  3211.  
  3212.         The CHANGE command issues this message when it finds its
  3213.         "target" text.  Refer to "1.2 CHANGE" on page 21 for details of the
  3214.         CHANGE command.
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.         
  3264.                                                   Appendix A.  Messages  45
  3265.  
  3266.  
  3267.         (C) Copyright IBM Corporation 1987, 1993
  3268.         
  3269.         
  3270.         
  3271.         APPENDIX B.  USER DEFINABLE KEYS
  3272.  
  3273.         This section lists all the valid names and combinations of the user
  3274.         definable keys that can be entered in a custom definition file.
  3275.  
  3276.         Keys shown in parentheses are only available with the Enhanced
  3277.         Keyboard.
  3278.  
  3279.         -------------------------------------------------------------------
  3280.           Table 1. Unshifted Keys
  3281.           Esc           Enter        Tab          Backspace    (PadEnter)
  3282.           F1            F2           F3           F4           F5        
  3283.           F6            F7           F8           F9           F10       
  3284.           (F11)         (F12)                                            
  3285.           Home          End          PgUp         PgDn                   
  3286.           Left          Right        Up           Down                   
  3287.           Ins           Del          (Pad5)                              
  3288.                                                                          
  3289.         -------------------------------------------------------------------
  3290.  
  3291.         -------------------------------------------------------------------
  3292.           Table 2. Shift Keys
  3293.           s-Tab                                                          
  3294.           s-F1          s-F2         s-F3         s-F4         s-F5      
  3295.           s-F6          s-F7         s-F8         s-F9         s-F10     
  3296.           (s-F11)       (s-F12)                                          
  3297.                                                                          
  3298.         -------------------------------------------------------------------
  3299.  
  3300.         -------------------------------------------------------------------
  3301.           Table 3. Ctrl Keys
  3302.           c-Enter       (c-Tab)      c-Backspace   (c-PadEnter)             
  3303.           c-a           c-b          c-c          c-d          c-e       
  3304.           c-f           c-g          c-h          c-i          c-j       
  3305.           c-k           c-l          c-m          c-n          c-o       
  3306.           c-p           c-q          c-r          c-s          c-t       
  3307.           c-u           c-v          c-w          c-x          c-y       
  3308.           c-z                                                            
  3309.           c-2           c-6                                              
  3310.           c-F1          c-F2         c-F3         c-F4         c-F5      
  3311.           c-F6          c-F7         c-F8         c-F9         c-F10     
  3312.           (c-F11)       (c-F12)                                          
  3313.           c-Home        c-End        c-PgUp       c-PgDn                 
  3314.           c-Left        c-Right      (c-Up)       (c-Down)               
  3315.           (c-Ins)       (c-Del)      (c-Pad5)                            
  3316.           c--           c-[          c-]          c-\                    
  3317.                                                                          
  3318.         -------------------------------------------------------------------
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.         
  3328.                                        Appendix B.  User Definable Keys  46
  3329.  
  3330.  
  3331.         (C) Copyright IBM Corporation 1987, 1993
  3332.         
  3333.         
  3334.         
  3335.         -------------------------------------------------------------------
  3336.           Table 4. Alt Keys
  3337.           (a-Enter)     (a-Tab)      (a-Backspace)   (a-PadEnter)             
  3338.           a-a           a-b          a-c          a-d          a-e       
  3339.           a-f           a-g          a-h          a-i          a-j       
  3340.           a-k           a-l          a-m          a-n          a-o       
  3341.           a-p           a-q          a-r          a-s          a-t       
  3342.           a-u           a-v          a-w          a-x          a-y       
  3343.           a-z                                                            
  3344.           a-1           a-2          a-3          a-4          a-5       
  3345.           a-6           a-7          a-8          a-9          a-0       
  3346.           a-F1          a-F2         a-F3         a-F4         a-F5      
  3347.           a-F6          a-F7         a-F8         a-F9         a-F10     
  3348.           (a-F11)       (a-F12)                                          
  3349.           (a-Home)      (a-End)      (a-PgUp)     (a-PgDn)               
  3350.           (a-Left)      (a-Right)    (a-Up)       (a-Down)               
  3351.           (a-Ins)       (a-Del)                                          
  3352.           a--           a-=                                              
  3353.                                                                          
  3354.         -------------------------------------------------------------------
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.         
  3392.                                        Appendix B.  User Definable Keys  47
  3393.  
  3394.  
  3395.         ===================================================================
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.         ===================================================================
  3412.  
  3413.         (C) Copyright IBM Corporation 1987, 1993
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.                                                         Printed in the U.K.
  3457.